You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Net.Mail/MailAddress.xml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,18 +58,20 @@ The <xref:System.Net.Mail.MailAddress> class is used by the <xref:System.Net.Mai
58
58
59
59
A mail address is composed of a <xref:System.Net.Mail.MailAddress.User%2A> name, <xref:System.Net.Mail.MailAddress.Host%2A> name and optionally, a <xref:System.Net.Mail.MailAddress.DisplayName%2A>. The <xref:System.Net.Mail.MailAddress.DisplayName%2A> can contain non-ASCII characters if you encode them.
60
60
61
-
The <xref:System.Net.Mail.MailAddress> class supports the following mail address formats:
61
+
The <xref:System.Net.Mail.MailAddress> class supports the following mail address formats:
62
62
63
63
- A simple address format of `user@host`. If a <xref:System.Net.Mail.MailAddress.DisplayName%2A> is not set, this is the mail address format generated.
64
64
65
65
- A standard quoted display name format of `"display name" <user@host>`. If a <xref:System.Net.Mail.MailAddress.DisplayName%2A> is set, this is the format generated.
66
66
67
-
- Angle brackets are added around the <xref:System.Net.Mail.MailAddress.User%2A> name and <xref:System.Net.Mail.MailAddress.Host%2A> name, if these are not included. For example, `"display name" user@host` is changed to `"display name" <user@host>`.
67
+
- Angle brackets are added around the <xref:System.Net.Mail.MailAddress.User%2A> name and <xref:System.Net.Mail.MailAddress.Host%2A> name, if these are not included. For example, `"display name" user@host` is changed to `"display name" <user@host>`.
68
68
69
-
- Quotes are added around the <xref:System.Net.Mail.MailAddress.DisplayName%2A>, if these are not included. For example, `display name <user@host>` is changed to `"display name" <user@host>`.
69
+
- Quotes are added around the <xref:System.Net.Mail.MailAddress.DisplayName%2A>, if these are not included. For example, `display name <user@host>` is changed to `"display name" <user@host>`.
70
70
71
-
- Unicode characters are supported in the <xref:System.Net.Mail.MailAddress.DisplayName%2A> property.
71
+
- Unicode characters are supported in the <xref:System.Net.Mail.MailAddress.DisplayName%2A> property.
72
72
73
+
Within these two formats, the following elements are allowed:
74
+
73
75
- A <xref:System.Net.Mail.MailAddress.User%2A> name with quotes. For example, `"user name"@host`.
74
76
75
77
- Consecutive and trailing dots in user names. For example, `user...name..@host`.
0 commit comments