MailAddressParser class

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.

ParseAddress method

Parses a single email address from the specified string.

internal static MailAddress ParseAddress(string data)

Parameters

data String

The string that contains an email address to be parsed.

Return value

MailAddress

A valid email address.

Exceptions

System.FormatException

The email address is invalid.

Requirements

Namespace: System.Net

Assembly: System (in System.dll)