DataContent.MediaType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.