Class ContentTypeTransferObject
Transfer object used to serialize ContentType into import/export package.
Namespace: EPiServer.Core.Transfer.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentTypeTransferObject : Object
Constructors
ContentTypeTransferObject()
Initializes a new instance of the ContentTypeTransferObject class.
Declaration
public ContentTypeTransferObject()
ContentTypeTransferObject(ContentType)
Initializes a new instance of the ContentTypeTransferObject class.
Declaration
public ContentTypeTransferObject(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
ContentType | contentType | Type of the content. |
Properties
Base
Gets or sets the base for this content type instance.
Declaration
public string Base { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Created
Gets or sets the created date of this content type instance.
Declaration
public Nullable<DateTime> Created { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
DefaultMvcControllerString
Gets or sets the type name of the mvc controller used to represent this type
Declaration
public string DefaultMvcControllerString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultMvcPartialView
Gets or sets the name of the mvc partial view used to represent this type
Declaration
public string DefaultMvcPartialView { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultWebFormTemplateString
Gets or sets the type name of the model used to represent this type
Declaration
public string DefaultWebFormTemplateString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Description
Gets or sets the description of this content type instance.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayName
Gets or sets the diplay name of this content type instance.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is the name for the content type in UI. When accessing the content type programatically Name should be used.
GUID
Gets or sets the globally unique identifier for this content type instance.
Declaration
public Guid GUID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ID
Gets or sets the unique identifier for this content type instance.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsAvailable
Gets or sets if the ContentType should be available in edit mode.
Declaration
public Nullable<bool> IsAvailable { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ModelTypeString
Gets or sets the type name of the model used to represent this type
Declaration
public string ModelTypeString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name of this content type instance.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyDefinitions
Gets a PropertyDefinitionCollection containing all property definitions used by this content type.
Declaration
public PropertyDefinitionCollection PropertyDefinitions { get; set; }
Property Value
Type | Description |
---|---|
PropertyDefinitionCollection |
Remarks
The contents of this collection will not be persisted when the page or block that uses it is saved. If you want to work with property definitions, use the IPropertyDefinitionRepository.
Saved
Gets or sets the save date of this content type instance.
Declaration
public Nullable<DateTime> Saved { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
SavedBy
Gets or sets the saved by of this content type instance.
Declaration
public string SavedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SortOrder
Gets or sets the default sort index based on other types
Declaration
public Nullable<int> SortOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
VersionString
Gets or sets the version of this content type instance.
Declaration
public string VersionString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CreateInstance()
Creates the instance.
Declaration
protected virtual ContentType CreateInstance()
Returns
Type | Description |
---|---|
ContentType |
ToContentType()
Toes the type of the content.
Declaration
public virtual ContentType ToContentType()
Returns
Type | Description |
---|---|
ContentType |