Try our conversational search powered by Generative AI!

Class ContentTypeTransferObject

Transfer object used to serialize ContentType into import/export package.

Inheritance
System.Object
ContentTypeTransferObject
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Transfer
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class ContentTypeTransferObject

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

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 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.

SortOrder

Gets or sets the default sort index based on other types

Declaration
public int? SortOrder { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

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

Extension Methods