Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMediaUrlGenerator

    Used to generate paths to media items for a specified property editor alias

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMediaUrlGenerator

    Methods

    View Source

    TryGetMediaPath(string?, object?, out string?)

    Tries to get a media path for a given property editor alias

    Declaration
    bool TryGetMediaPath(string? propertyEditorAlias, object? value, out string? mediaPath)
    Parameters
    Type Name Description
    string propertyEditorAlias

    The property editor alias

    object value

    The value of the property

    string mediaPath

    The media path

    Returns
    Type Description
    bool

    True if a media path was returned

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX