Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetUser()

string System.Net.Mail.MailAddress.GetUser ( bool allowUnicode)
inlineprivate

Definition at line 120 of file MailAddress.cs.

121 {
122 if (!allowUnicode && !MimeBasePart.IsAscii(_userName, permitCROrLF: true))
123 {
124 throw new SmtpException(System.SR.Format(System.SR.SmtpNonAsciiUserNotSupported, Address));
125 }
126 return _userName;
127 }
readonly string _userName
static bool IsAscii(string value, bool permitCROrLF)
static string SmtpNonAsciiUserNotSupported
Definition SR.cs:104
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Net.Mail.MailAddress._userName, System.Net.Mail.MailAddress.Address, System.SR.Format(), System.Net.Mime.MimeBasePart.IsAscii(), and System.SR.SmtpNonAsciiUserNotSupported.

Referenced by System.Net.Mail.MailAddress.GetAddress().