Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApiMediaUrlProvider

    Default implementation of IApiMediaUrlProvider that provides media URLs for the Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ApiMediaUrlProvider : IApiMediaUrlProvider

    Constructors

    View Source

    ApiMediaUrlProvider(IPublishedUrlProvider)

    Initializes a new instance of the ApiMediaUrlProvider class.

    Declaration
    public ApiMediaUrlProvider(IPublishedUrlProvider publishedUrlProvider)
    Parameters
    Type Name Description
    IPublishedUrlProvider publishedUrlProvider

    The published URL provider.

    Methods

    View Source

    GetUrl(IPublishedContent)

    Gets the URL for the specified media item.

    Declaration
    public string GetUrl(IPublishedContent media)
    Parameters
    Type Name Description
    IPublishedContent media

    The published media to get the URL for.

    Returns
    Type Description
    string

    The URL of the media item.

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