Interface IApiMediaUrlProvider
Defines a provider that retrieves URLs for media items in the Delivery API.
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface IApiMediaUrlProvider
Methods
View SourceGetUrl(IPublishedContent)
Gets the URL for the specified media item.
Declaration
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. |