Class MediaItemExtensions
Inheritance
System.Object
MediaItemExtensions
Namespace: ImageVault.EPiServer.Common
Assembly: ImageVault.EPiServer.Common.dll
Syntax
public static class MediaItemExtensions : Object
Methods
GetMetadataValue<T>(MediaItem, String, T, MetadataDefinitionTypes)
Declaration
public static T GetMetadataValue<T>(this MediaItem mediaItem, string metadataName, T defaultValue = null, MetadataDefinitionTypes definitionType)
Parameters
Type | Name | Description |
---|---|---|
MediaItem | mediaItem | |
System.String | metadataName | |
T | defaultValue | |
MetadataDefinitionTypes | definitionType |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |