Share via


DataContent.MediaType Property

Definition

Gets the media type (also known as MIME type) of the content.

public:
 property System::String ^ MediaType { System::String ^ get(); };
[System.Text.Json.Serialization.JsonPropertyOrder(1)]
public string? MediaType { get; }
[<System.Text.Json.Serialization.JsonPropertyOrder(1)>]
member this.MediaType : string
Public ReadOnly Property MediaType As String

Property Value

Attributes

Remarks

If the media type was explicitly specified, this property will return that value. If the media type was not explicitly specified, but a data URI was supplied and that data URI contained a non-default media type, that media type will be returned. Otherwise, this will return null.

Applies to