Click or drag to resize
MimeKit

MultipartAlternativeGetTextBody Method

Get the text body in the specified format.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public string GetTextBody(
	TextFormat format
)

Parameters

format  TextFormat
The desired text format.

Return Value

String
The text body in the desired format if it exists; otherwise, null.

Implements

IMultipartAlternativeGetTextBody(TextFormat)
Exceptions
ExceptionCondition
ObjectDisposedException The MultipartAlternative has been disposed.
Remarks
Gets the text body in the specified format, if it exists.
See Also