Click or drag to resize
MimeKit

TextPart Constructor (String)

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
)

Parameters

subtype
Type: SystemString
The media subtype.
Exceptions
ExceptionCondition
ArgumentNullExceptionsubtype is null.
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