BodyPartTryParse Method

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

Definition

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

Remarks

Parses a body part from the specified text.

  Note

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

Exceptions

See Also