Class MediaExtensions
Inheritance
System.Object
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public static class MediaExtensions
Methods
View SourceGetUrl(IMedia, String, ILogger)
Gets the URL of a media item.
Declaration
public static string GetUrl(this IMedia media, string propertyAlias, ILogger logger)
Parameters
Returns
Type | Description |
---|---|
System. |
GetUrls(IMedia, IContentSection, ILogger)
Gets the URLs of a media item.
Declaration
public static string[] GetUrls(this IMedia media, IContentSection contentSection, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
IMedia | media | |
IContent |
contentSection | |
ILogger | logger |
Returns
Type | Description |
---|---|
System. |