SaaS CMS has officially launched! Learn more now.

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