Class ContentTypeModel
Model object for a ContentType
Inheritance
Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentTypeModel : Object
Constructors
ContentTypeModel()
Initializes a new instance of the ContentTypeModel class.
Declaration
public ContentTypeModel()
Properties
ACL
Gets or sets access rights.
Declaration
public AccessControlList ACL { get; set; }
Property Value
Type | Description |
---|---|
AccessControlList |
Attributes
Gets the attributes on the model.
Declaration
public ModelAttributeCollection Attributes { get; }
Property Value
Type | Description |
---|---|
ModelAttributeCollection |
AvailableContentTypes
Gets or sets the available page types attribute.
Declaration
public IContentTypeAvailableModelSetting AvailableContentTypes { get; set; }
Property Value
Type | Description |
---|---|
IContentTypeAvailableModelSetting | The available page types. |
AvailableInEditMode
Gets or sets an indication if this page type should be available for editors in edit mode.
Declaration
public Nullable<bool> AvailableInEditMode { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Base
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Gets or sets the base of content type.
Declaration
public ContentTypeBase Base { get; set; }
Property Value
Type | Description |
---|---|
ContentTypeBase |
Description
Gets or sets the description of this content type.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
Gets or sets the display name of this content type. This is the name that will appear in any UI.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExistingContentType
Gets or sets the existing content type.
Declaration
public ContentType ExistingContentType { get; set; }
Property Value
Type | Description |
---|---|
ContentType |
GroupName
Gets or sets the group name of this content type.
Declaration
public string GroupName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Guid
Gets or sets the guid that identifies the content type.
Declaration
public Nullable<Guid> Guid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
ModelType
Gets or sets the type of content data this model represents. Must derive from ContentData
Declaration
public Type ModelType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Name
Gets or sets the name of this content type. Should not be updated by a user.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Order
Gets or sets the sort order of this content type.
Declaration
public Nullable<int> Order { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PropertyDefinitionModels
Gets or sets a map of property definitions, MainBody would be one example, for this content type.
Declaration
public IList<PropertyDefinitionModel> PropertyDefinitionModels { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<PropertyDefinitionModel> |
State
Gets the state of the Model corresponding to the matching ContentData
Declaration
public SynchronizationStatus State { get; }
Property Value
Type | Description |
---|---|
SynchronizationStatus | The state. |
Methods
IsInSynch(ContentType)
Determines whether this model instance is in synch with given ContentType
Declaration
public virtual bool IsInSynch(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
ContentType | contentType | The ContentType to compare against. |
Returns
Type | Description |
---|---|
System.Boolean |
|