MimePart(String, String) Constructor

Initialize a new instance of the MimePart class with the specified media type and subtype.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimePart(
	string mediaType,
	string mediaSubtype
)

Parameters

mediaType  String
The media type.
mediaSubtype  String
The media subtype.

Remarks

Creates a new MimePart with the specified media type and subtype.

Exceptions

ArgumentNullException

mediaType is .

-or-

mediaSubtype is .

See Also