Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.19 KB

system.net.mail.mailaddressparser.md

File metadata and controls

59 lines (41 loc) · 1.19 KB
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
apiref
System.Net.Mail.MailAddressParser
System.Net.Mail.MailAddressParser.ParseAddress
System.dll
Assembly

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 xref:System.String

The string that contains an email address to be parsed.

Return value

xref:System.Net.Mail.MailAddress

A valid email address.

Exceptions

xref:System.FormatException?displayProperty=nameWithType

The email address is invalid.

Requirements

Namespace: xref:System.Net

Assembly: System (in System.dll)