Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IImageSourceParser

    Provides methods to parse image tag sources in property values.

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

    Methods

    View Source

    FromArtifact(String)

    Parses an artifact property value and produces an Umbraco property value.

    Declaration
    string FromArtifact(string value)
    Parameters
    Type Name Description
    System.String value

    The artifact property value.

    Returns
    Type Description
    System.String

    The parsed value.

    Remarks

    Turns umb://media/... into /media/....

    View Source

    ToArtifact(String, ICollection<Udi>)

    Parses an Umbraco property value and produces an artifact property value.

    Declaration
    string ToArtifact(string value, ICollection<Udi> dependencies)
    Parameters
    Type Name Description
    System.String value

    The property value.

    ICollection<Udi> dependencies

    A list of dependencies.

    Returns
    Type Description
    System.String

    The parsed value.

    Remarks

    Turns src="/media/..." into src="umb://media/..." and adds the corresponding udi to the dependencies.

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