Click or drag to resize
MimeKit

TextPart(String, Object) Constructor

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

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullException

subtype is null.

-or-

args is null.

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.

Remarks

Creates a new TextPart with the specified subtype.

Note  Note

Typically the subtype should either be "plain" for plain text content or "html" for HTML content.

For more options, check the MIME-type registry at http://www.iana.org/assignments/media-types/media-types.xhtml#text

See Also