Click or drag to resize
MimeKit

MessagePart(String, String) Constructor

Initialize a new instance of the MessagePart class.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected MessagePart(
	string mediaType,
	string mediaSubtype
)

Parameters

mediaType  String
The media type.
mediaSubtype  String
The media subtype.
Exceptions
ExceptionCondition
ArgumentNullException

mediaType is null.

-or-

mediaSubtype is null.

Remarks
Initializes the ContentType based on the provided media type and subtype.
See Also