MediaOptions Class

Options for the MediaLinkExtension.

public class MediaOptions

Constructors

NameDescription
MediaOptions()Initializes a new instance of the MediaOptions class.

MediaOptions()

MediaOptions.cs

Initializes a new instance of the MediaOptions class.

public MediaOptions()

Properties

NameDescription
AddControlsPropertyGets or sets the add controls property.
ClassGets or sets the class.
ExtensionToMimeTypeGets the extension to mime type.
HeightGets or sets the height.
HostsGets the hosts.
WidthGets or sets the width.

AddControlsProperty

MediaOptions.cs

Gets or sets the add controls property.

public bool AddControlsProperty { get; set; }

Property value

bool

Gets or sets the class.

public string Class { get; set; }

Property value

string

ExtensionToMimeType

MediaOptions.cs

Gets the extension to mime type.

public Dictionary<string, string> ExtensionToMimeType { get; }

Gets or sets the height.

public string Height { get; set; }

Property value

string

Gets the hosts.

public List<IHostProvider> Hosts { get; }

Property value

List<IHostProvider>

Gets or sets the width.

public string Width { get; set; }

Property value

string