C# Класс GSoft.Dynamite.Definitions.ContentTypeBuilder

Helper class for managing content types.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CreateContentType() публичный Метод

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.
Результат SPContentType