Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataTypeExtensions

    Provides extensions methods for IDataType.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class DataTypeExtensions

    Methods

    View Source

    ConfigurationAs<T>(IDataType)

    Gets the configuration object.

    Declaration
    public static T ConfigurationAs<T>(this IDataType dataType)
        where T : class
    Parameters
    Type Name Description
    IDataType dataType

    This datatype.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The expected type of the configuration object.

    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • ConfigurationAs<T>(IDataType)
      • IsBuildInDataType(Guid)
      • IsBuildInDataType(IDataType)
      • IsDeletableDataType(Guid)
      • IsDeletableDataType(IDataType)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX