Multipart AlternativeGet Text Body Method
Get the text body in the specified format.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The text body in the desired format if it exists; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string? GetTextBody(
TextFormat format
)Parameters
- format TextFormat
- The desired text format.
Return Value
StringThe text body in the desired format if it exists; otherwise, .
Implements
IMultipartAlternativeGetTextBody(TextFormat)Remarks
Gets the text body in the specified format, if it exists.
Exceptions
| ObjectDisposedException | The MultipartAlternative has been disposed. |