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