Content Type Constructor
Initialize a new instance of the ContentType class.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public ContentType(
string mediaType,
string mediaSubtype
)Parameters
Remarks
Creates a new ContentType based on the media type and subtype provided.
Exceptions
| ArgumentNullException |
mediaType is . -or- mediaSubtype is . |
| ArgumentException | mediaType or mediaSubtype is empty or is not an ASCII MIME token. |