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
tableNamestringName of the Content item data table
Exceptions
- ArgumentException
Thrown when the
tableNameis 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
contentTypeInfoObjectDataClassInfoInfo object to be initialized.
Returns
- DataClassInfo
Returns the initialized data class.
Exceptions
- ArgumentNullException
Thrown when
contentTypeInfoObjectis null.- ArgumentException
Thrown when the ClassName of given
contentTypeInfoObjectis null or empty, or does not contain a namespace delimited by the '.' (dot) character.