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