TextPart(String, Object) Constructor

Initialize a new instance of the TextPart class with the specified text subtype.

Definition

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

Parameters

subtype  String
The media subtype.
args  Object
An array of initialization parameters: headers, charset encoding and text.

Remarks

Creates a new TextPart with the specified subtype.

Exceptions

ArgumentNullException

subtype is .

-or-

args is .

ArgumentException

args contains more than one Encoding.

-or-

args contains more than one String.

-or-

args contains one or more arguments of an unknown type.

See Also