MessagePart(String, Object) Constructor

Initialize a new instance of the MessagePart class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MessagePart(
	string subtype,
	params Object[] args
)

Parameters

subtype  String
The message subtype.
args  Object
An array of initialization parameters: headers and message parts.

Remarks

Creates a new MessagePart.

Exceptions

ArgumentNullException

subtype is .

-or-

args is .

ArgumentException

args contains more than one MimeMessage.

-or-

args contains one or more arguments of an unknown type.

See Also