Class PublishedDataType
Represents a published data type.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public class PublishedDataType
Remarks
Instances of the Published
These instances should be created by an IPublished
Constructors
View SourcePublishedDataType(Int32, String, Lazy<Object>)
Declaration
[Obsolete("Please use the constructor that accepts editor UI alias too. Scheduled for removal in V16.")]
public PublishedDataType(int id, string editorAlias, Lazy<object> lazyConfiguration)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | |
System. |
editorAlias | |
System. |
lazyConfiguration |
PublishedDataType(Int32, String, String, Lazy<Object>)
Initializes a new instance of the Published
Declaration
public PublishedDataType(int id, string editorAlias, string editorUiAlias, Lazy<object> lazyConfiguration)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | |
System. |
editorAlias | |
System. |
editorUiAlias | |
System. |
lazyConfiguration |
Properties
View SourceConfigurationObject
Gets the data type configuration object.
Declaration
public object ConfigurationObject { get; }
Property Value
Type | Description |
---|---|
System. |
EditorAlias
Gets the data type editor alias.
Declaration
public string EditorAlias { get; }
Property Value
Type | Description |
---|---|
System. |
EditorUiAlias
Gets the data type editor UI alias.
Declaration
public string EditorUiAlias { get; }
Property Value
Type | Description |
---|---|
System. |
Id
Gets the datatype identifier.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceConfigurationAs<T>()
Gets the configuration object.
Declaration
public T ConfigurationAs<T>()
where T : class
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The expected type of the configuration object. |
Exceptions
Type | Condition |
---|---|
System. |
When the datatype configuration is not of the expected type. |