Search Results for

    Show / Hide Table of Contents
    View Source

    Class ValueConnectorExtensions

    Extension methods adding backwards-compatability between IValueConnector and IValueConnector2.

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

    These extension methods will be removed in Umbraco 13.

    Methods

    View Source

    FromArtifact(IValueConnector, String, IPropertyType, Object, IContextCache)

    Gets the property value corresponding to an artifact value.

    Declaration
    public static object FromArtifact(this IValueConnector connector, string value, IPropertyType propertyType, object currentValue, IContextCache contextCache)
    Parameters
    Type Name Description
    IValueConnector connector

    The connector.

    System.String value

    The artifact value.

    IPropertyType propertyType

    The property type.

    System.Object currentValue

    The current property value.

    IContextCache contextCache

    The context cache.

    Returns
    Type Description
    System.Object

    The property value.

    Remarks

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

    View Source

    ToArtifact(IValueConnector, Object, IPropertyType, ICollection<ArtifactDependency>, IContextCache)

    Gets the artifact value corresponding to a property value and gather dependencies.

    Declaration
    public static string ToArtifact(this IValueConnector connector, object value, IPropertyType propertyType, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
    Parameters
    Type Name Description
    IValueConnector connector

    The connector.

    System.Object value

    The property value.

    IPropertyType propertyType

    The property type.

    ICollection<ArtifactDependency> dependencies

    The dependencies.

    IContextCache contextCache

    The context cache.

    Returns
    Type Description
    System.String

    The artifact value.

    Remarks

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

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