Table of Contents

Interface IContentTypeManager

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Provides management API for typical content type operations.

public interface IContentTypeManager
Extension Methods

Methods

CreateTableStructures(string)

Ensures database table foreign key constraints and indexes programmatically.

void CreateTableStructures(string tableName)

Parameters

tableName string

Name of the Content item data table

Exceptions

ArgumentException

Thrown when the tableName is null or empty.

Initialize(DataClassInfo)

Initializes given DataClassInfo with ClassTableName derived from the ClassName of given contentTypeInfoObject and form definition containing the system fields (ID, language, version, etc.).

DataClassInfo Initialize(DataClassInfo contentTypeInfoObject)

Parameters

contentTypeInfoObject DataClassInfo

Info object to be initialized.

Returns

DataClassInfo

Returns the initialized data class.

Exceptions

ArgumentNullException

Thrown when contentTypeInfoObject is null.

ArgumentException

Thrown when the ClassName of given contentTypeInfoObject is null or empty, or does not contain a namespace delimited by the '.' (dot) character.