Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class MediaExtensions

    Methods

    View Source

    GetUrl(IMedia, String, MediaUrlGeneratorCollection)

    Gets the URL of a media item.

    Declaration
    public static string GetUrl(this IMedia media, string propertyAlias, MediaUrlGeneratorCollection mediaUrlGenerators)
    Parameters
    Type Name Description
    IMedia media
    System.String propertyAlias
    MediaUrlGeneratorCollection mediaUrlGenerators
    Returns
    Type Description
    System.String
    View Source

    GetUrls(IMedia, ContentSettings, MediaUrlGeneratorCollection)

    Gets the URLs of a media item.

    Declaration
    public static string[] GetUrls(this IMedia media, ContentSettings contentSettings, MediaUrlGeneratorCollection mediaUrlGenerators)
    Parameters
    Type Name Description
    IMedia media
    ContentSettings contentSettings
    MediaUrlGeneratorCollection mediaUrlGenerators
    Returns
    Type Description
    System.String[]
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetUrl(IMedia, String, MediaUrlGeneratorCollection)
      • GetUrls(IMedia, ContentSettings, MediaUrlGeneratorCollection)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX