Class DataTypeExtensions
Provides extensions methods for IDataType.
Inheritance
System.Object
      Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class DataTypeExtensionsMethods
View SourceConfigurationAs<T>(IDataType)
Gets the configuration object.
Declaration
public static T ConfigurationAs<T>(this IDataType dataType)
    where T : classParameters
| Type | Name | Description | 
|---|---|---|
| IDataType | dataType | This datatype. | 
Returns
| Type | Description | 
|---|---|
| T | 
Type Parameters
| Name | Description | 
|---|---|
| T | The expected type of the configuration object. | 
IsBuildInDataType(Guid)
Returns true if this data type is build-in/default.
Declaration
public static bool IsBuildInDataType(Guid key)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | key | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
IsBuildInDataType(IDataType)
Returns true if this data type is build-in/default.
Declaration
public static bool IsBuildInDataType(this IDataType dataType)Parameters
| Type | Name | Description | 
|---|---|---|
| IDataType | dataType | The data type definition. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
IsDeletableDataType(Guid)
Returns true if this data type can be deleted.
Declaration
public static bool IsDeletableDataType(Guid key)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | key | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
IsDeletableDataType(IDataType)
Returns true if this data type can be deleted.
Declaration
public static bool IsDeletableDataType(this IDataType dataType)Parameters
| Type | Name | Description | 
|---|---|---|
| IDataType | dataType | The data type definition. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean |