Click or drag to resize
MimeKit

TextPart Constructor (String, Object)

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

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

Parameters

subtype
Type: SystemString
The media subtype.
args
Type: SystemObject
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