MultipartTryGetValue Method

Get the preferred message body if it exists.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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, .

Remarks

Gets the preferred message body if it exists.

Exceptions

ObjectDisposedException The Multipart has been disposed.

See Also