Internet AddressParse(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(
string text
)Parameters
- 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 | text is . |
| ParseException | text could not be parsed. |