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.7.1
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
true, if the body part was successfully parsed, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is null.
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