C# Class GSoft.Dynamite.Definitions.ContentTypeBuilder

Helper class for managing content types.
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
CreateContentType ( ContentTypeInfo contentTypeInfo, SPSite site ) : SPContentType

Creates the content type with a new instance of SPSite because the updates from the last content type changes were not propagated from the database.

Private Methods

Method Description
AddFieldToContentType ( SPContentType contentType, SPField field, bool updateContentType ) : bool
DeleteContentTypeIfNotUsed ( SPContentType contentType ) : void
DeleteContentTypeIfNotUsed ( SPContentTypeCollection collection, SPContentTypeId contentTypeId ) : void
EnsureContentType ( SPContentTypeCollection contentTypeCollection, ContentTypeInfo contentTypeInfo ) : SPContentType
EnsureContentType ( SPContentTypeCollection contentTypeCollection, SPContentTypeId contentTypeId, string contentTypeName ) : SPContentType
EnsureFieldInContentType ( SPContentType contentType, ICollection fieldInfos ) : IEnumerable
EnsureFieldInContentType ( SPContentType contentType, FieldInfo fieldInfo ) : SPField
TryGetListFromContentTypeCollection ( SPContentTypeCollection collection, SPList &list ) : bool
TryGetWebFromContentTypeCollection ( SPContentTypeCollection collection, SPWeb &web ) : bool

Method Details

CreateContentType() public method

Creates the content type with a new instance of SPSite because the updates from the last content type changes were not propagated from the database.
public CreateContentType ( ContentTypeInfo contentTypeInfo, SPSite site ) : SPContentType
contentTypeInfo ContentTypeInfo The content type information.
site SPSite The site.
return SPContentType