GroupAddressParse(ParserOptions, String) Method

Parse the given text into a new GroupAddress instance.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static GroupAddress Parse(
	ParserOptions options,
	string text
)

Parameters

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

Return Value

GroupAddress
The parsed GroupAddress.

Remarks

Parses a single GroupAddress. If the address is not a group address or there is more than a single group address, then parsing will fail.

Exceptions

ArgumentNullException

options is .

-or-

text is .

ParseException text could not be parsed.

See Also