Property MediaType
MediaType
Gets or sets the media type value included in the Content-Type header represented by this instance.
Declaration
public string MediaType { get; }
Property Value
| Type | Description |
|---|---|
| string | A string that contains the media type and subtype value. This value does not include the semicolon (;) separator that follows the subtype. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The value specified for a set operation is null. |
| ArgumentException | The value specified for a set operation is Empty (""). |
| FormatException | The value specified for a set operation is in a form that cannot be parsed. |