description | title | ms.date | ms.subservice | topic_type | api_name | api_location | api_type | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: MailAddressParser class |
MailAddressParser class (System.Net) |
06/12/2020 |
networking |
|
|
|
|
Parses email addresses as described in RFC 2822. This class cannot be inherited.
internal static class MailAddressParser
Warning
This class is internal and is not meant to be used directly in your code.
Microsoft does not support the use of this class in a production application under any circumstance.
Parses a single email address from the specified string.
internal static MailAddress ParseAddress(string data)
data
xref:System.String
The string that contains an email address to be parsed.
xref:System.Net.Mail.MailAddress
A valid email address.
xref:System.FormatException?displayProperty=nameWithType
The email address is invalid.
Namespace: xref:System.Net
Assembly: System (in System.dll)