Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataTypeConfigurationConnectorExtensions

    Extension methods adding backwards-compatability between IDataTypeConfigurationConnector and IDataTypeConfigurationConnector2.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Deploy
    Assembly: Umbraco.Core.dll
    Syntax
    public static class DataTypeConfigurationConnectorExtensions
    Remarks

    These extension methods will be removed in Umbraco 13.

    Methods

    View Source

    FromArtifact(IDataTypeConfigurationConnector, IDataType, String, IContextCache)

    Gets the data type configuration corresponding to an artifact configuration value.

    Declaration
    public static object FromArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, string configuration, IContextCache contextCache)
    Parameters
    Type Name Description
    IDataTypeConfigurationConnector connector

    The connector.

    IDataType dataType

    The data type.

    System.String configuration

    The artifact configuration value.

    IContextCache contextCache

    The context cache.

    Returns
    Type Description
    System.Object

    The data type configuration.

    Remarks

    This extension method tries to make use of the IContextCache on types also implementing IDataTypeConfigurationConnector2.

    View Source

    ToArtifact(IDataTypeConfigurationConnector, IDataType, ICollection<ArtifactDependency>, IContextCache)

    Gets the artifact configuration value corresponding to a data type configuration and gather dependencies.

    Declaration
    public static string ToArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
    Parameters
    Type Name Description
    IDataTypeConfigurationConnector connector

    The connector.

    IDataType dataType

    The data type.

    ICollection<ArtifactDependency> dependencies

    The dependencies.

    IContextCache contextCache

    The context cache.

    Returns
    Type Description
    System.String

    The artifact configuration value.

    Remarks

    This extension method tries to make use of the IContextCache on types also implementing IDataTypeConfigurationConnector2.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • FromArtifact(IDataTypeConfigurationConnector, IDataType, String, IContextCache)
      • ToArtifact(IDataTypeConfigurationConnector, IDataType, ICollection<ArtifactDependency>, IContextCache)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX