EnvelopeTryParse Method

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

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static bool TryParse(
	string text,
	out Envelope?? envelope
)

Parameters

text  String
The text to parse.
envelope  Envelope
The parsed envelope.

Return Value

Boolean
, if the envelope was successfully parsed, otherwise.

Remarks

Parses an Envelope value from the specified text.

  Caution

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

Exceptions

See Also