Interface IMediaUrlGenerator
Used to generate paths to media items for a specified property editor alias
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IMediaUrlGenerator
Methods
View SourceTryGetMediaPath(String, Object, out String)
Tries to get a media path for a given property editor alias
Declaration
bool TryGetMediaPath(string propertyEditorAlias, object value, out string mediaPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyEditorAlias | The property editor alias |
System.Object | value | The value of the property |
System.String | mediaPath |
Returns
Type | Description |
---|---|
System.Boolean | True if a media path was returned |