Click or drag to resize
MimeKit

MultipartTryGetValue Method

Get the preferred message body if it exists.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public virtual bool TryGetValue(
	TextFormat format,
	out TextPart body
)

Parameters

format  TextFormat
The preferred text format.
body  TextPart
The MIME part containing the message body in the preferred text format.

Return Value

Boolean
if the body part is found; otherwise, .
Exceptions
ExceptionCondition
ObjectDisposedException The Multipart has been disposed.
Remarks
Gets the preferred message body if it exists.
See Also