Click or drag to resize
MimeKit

BodyPartTryParse Method

Tries to parse the given text into a new BodyPart instance.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.10.0
Syntax
C#
public static bool TryParse(
	string text,
	out BodyPart part
)

Parameters

text  String
The text to parse.
part  BodyPart
The parsed body part.

Return Value

Boolean
if the body part was successfully parsed; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is .
Remarks

Parses a body part from the specified text.

Note  Note
This syntax, while similar to IMAP's BODYSTRUCTURE syntax, is not completely compatible.
See Also