Internet AddressParse(Parser Options, String) Method
Parse the given text into a new InternetAddress instance.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The parsed InternetAddress.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static InternetAddress Parse(
ParserOptions options,
string text
)Parameters
- options ParserOptions
- The parser options to use.
- text String
- The text.
Return Value
InternetAddressThe parsed InternetAddress.
Remarks
Parses a single MailboxAddress or GroupAddress. If the text contains
more data, then parsing will fail.
Exceptions
| ArgumentNullException |
options is . -or- text is . |
| ParseException | text could not be parsed. |