London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class MediaDescriptorAttribute

Attribute for model type which support media

Inheritance
System.Object
MediaDescriptorAttribute
Namespace: EPiServer.Framework.DataAnnotations
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public sealed class MediaDescriptorAttribute : Attribute

Constructors

MediaDescriptorAttribute()

Declaration
public MediaDescriptorAttribute()

Properties

Extensions

The extensions that this type support.

Declaration
public string[] Extensions { get; set; }
Property Value
Type Description
System.String[]
Remarks

Use ExtensionString instead if your project is CLS-compliant.

ExtensionString

Gets or sets the Extensions as a comma-separated list.

Declaration
public string ExtensionString { get; set; }
Property Value
Type Description
System.String

The Extensions string.

Remarks

This can be used instead of Extensions if your project is CLS-compliant.

Extension Methods