Class DataTypeDefinition
Definition of a DataType/PropertyEditor
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class DataTypeDefinition : Entity, IDataTypeDefinition, IUmbracoEntity, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
DataTypeDefinition(Int32, Guid)
Declaration
[Obsolete("Property editor's are defined by a string alias from version 7 onwards, use the alternative contructor that specifies an alias")]
public DataTypeDefinition(int parentId, Guid controlId)
Parameters
Type |
Name |
Description |
System.Int32 |
parentId |
|
System.Guid |
controlId |
|
DataTypeDefinition(Int32, String)
Declaration
public DataTypeDefinition(int parentId, string propertyEditorAlias)
Parameters
Type |
Name |
Description |
System.Int32 |
parentId |
|
System.String |
propertyEditorAlias |
|
DataTypeDefinition(String)
Declaration
public DataTypeDefinition(string propertyEditorAlias)
Parameters
Type |
Name |
Description |
System.String |
propertyEditorAlias |
|
Properties
ControlId
Id of the DataType control
Declaration
[DataMember]
[Obsolete("Property editor's are defined by a string alias from version 7 onwards, use the PropertyEditorAlias property instead. This method will return a generated GUID for any property editor alias not explicitly mapped to a legacy ID")]
public Guid ControlId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
CreatorId
Id of the user who created this entity
Declaration
[DataMember]
public int CreatorId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
DatabaseType
Gets or Sets the DatabaseType for which the DataType's value is saved as
Declaration
[DataMember]
public DataTypeDatabaseType DatabaseType { get; set; }
Property Value
Level
Gets or sets the level of the content entity
Declaration
[DataMember]
public int Level { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Name
Gets or sets the name of the current entity
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
ParentId
Gets or sets the Id of the Parent entity
Declaration
[DataMember]
public int ParentId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Path
Declaration
[DataMember]
public string Path { get; set; }
Property Value
Type |
Description |
System.String |
|
PropertyEditorAlias
Declaration
[DataMember]
public string PropertyEditorAlias { get; set; }
Property Value
Type |
Description |
System.String |
|
SortOrder
Gets or sets the sort order of the content entity
Declaration
[DataMember]
public int SortOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Trashed
Boolean indicating whether this entity is Trashed or not.
Declaration
[DataMember]
public bool Trashed { get; }
Property Value
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IUmbracoEntity.AdditionalData
Some entities may expose additional data that other's might not, this custom data will be available in this collection
Declaration
IDictionary<string, object> IUmbracoEntity.AdditionalData { get; }
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|