Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IValueConnector

    Defines methods that can convert a property value to / from an environment-agnostic string.

    Namespace: Umbraco.Cms.Core.Deploy
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IValueConnector
    Remarks

    Property values may contain values such as content identifiers, that would be local to one environment, and need to be converted in order to be deployed. Connectors also deal with serializing to / from string.

    Properties

    View Source

    PropertyEditorAliases

    Gets the property editor aliases that the value converter supports by default.

    Declaration
    IEnumerable<string> PropertyEditorAliases { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Methods

    View Source

    FromArtifact(String, IPropertyType, Object)

    Gets the content property value corresponding to a deploy property value.

    Declaration
    object FromArtifact(string value, IPropertyType propertyType, object currentValue)
    Parameters
    Type Name Description
    System.String value

    The deploy property value.

    IPropertyType propertyType

    The value property type

    System.Object currentValue

    The current content property value.

    Returns
    Type Description
    System.Object

    The content property value.

    View Source

    ToArtifact(Object, IPropertyType, ICollection<ArtifactDependency>)

    Gets the deploy property value corresponding to a content property value, and gather dependencies.

    Declaration
    string ToArtifact(object value, IPropertyType propertyType, ICollection<ArtifactDependency> dependencies)
    Parameters
    Type Name Description
    System.Object value

    The content property value.

    IPropertyType propertyType

    The value property type

    ICollection<ArtifactDependency> dependencies

    The content dependencies.

    Returns
    Type Description
    System.String

    The deploy property value.

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