Content TypeMedia Type Property
Get or set the type of the media.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The type of the media.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string MediaType { get; set; }Property Value
StringThe type of the media.
Remarks
Represents the media type of the MimeEntity. Examples include
"text", "image", and "application". This string should
always be treated as case-insensitive.
Exceptions
| ArgumentNullException | value is . |
| ArgumentException | value is empty or is not an ASCII MIME token. |