Click or drag to resize
MimeKit

ContentType Constructor

Initialize a new instance of the ContentType class.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public ContentType(
	string mediaType,
	string mediaSubtype
)

Parameters

mediaType  String
Media type.
mediaSubtype  String
Media subtype.
Exceptions
ExceptionCondition
ArgumentNullException

mediaType is null.

-or-

mediaSubtype is null.

Remarks
Creates a new ContentType based on the media type and subtype provided.
See Also