Click or drag to resize
MimeKit

InternetAddressParse(ParserOptions, String) Method

Parse the given text into a new InternetAddress instance.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static InternetAddress Parse(
	ParserOptions options,
	string text
)

Parameters

options  ParserOptions
The parser options to use.
text  String
The text.

Return Value

InternetAddress
The parsed InternetAddress.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

text is null.

ParseExceptiontext could not be parsed.
Remarks
Parses a single MailboxAddress or GroupAddress. If the text contains more data, then parsing will fail.
See Also