Click or drag to resize
MimeKit

MimePart(String, String, Object) Constructor

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

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public MimePart(
	string mediaType,
	string mediaSubtype,
	params Object[] args
)

Parameters

mediaType  String
The media type.
mediaSubtype  String
The media subtype.
args  Object
An array of initialization parameters: headers and part content.
Exceptions
ExceptionCondition
ArgumentNullException

mediaType is null.

-or-

mediaSubtype is null.

-or-

args is null.

ArgumentException

args contains more than one IMimeContent or Stream.

-or-

args contains one or more arguments of an unknown type.

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