Click or drag to resize
MimeKit

EnvelopeTryParse Method

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

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.10.0
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is .
Remarks

Parses an Envelope value from the specified text.

Caution note  Caution
This syntax, while similar to IMAP's ENVELOPE syntax, is not completely compatible.
See Also