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

◆ ValidateHostName()

static void System.Net.Dns.ValidateHostName ( string hostName)
inlinestaticprivate

Definition at line 591 of file Dns.cs.

592 {
593 if (hostName.Length > 255 || (hostName.Length == 255 && hostName[254] != '.'))
594 {
595 throw new ArgumentOutOfRangeException("hostName", System.SR.Format(System.SR.net_toolong, "hostName", 255.ToString(NumberFormatInfo.CurrentInfo)));
596 }
597 }
static string net_toolong
Definition SR.cs:14
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Globalization.NumberFormatInfo.CurrentInfo, System.SR.Format(), and System.SR.net_toolong.

Referenced by System.Net.Dns.GetHostEntryOrAddressesCore(), and System.Net.Dns.GetHostEntryOrAddressesCoreAsync().