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

◆ CheckArgs() [2/2]

void System.Net.NetworkInformation.Ping.CheckArgs ( IPAddress address,
int timeout,
byte[] buffer,
PingOptions options )
inlineprivate

Definition at line 88 of file Ping.cs.

89 {
91 if (address == null)
92 {
93 throw new ArgumentNullException("address");
94 }
95 TestIsIpSupported(address);
96 if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any))
97 {
98 throw new ArgumentException(System.SR.net_invalid_ip_addr, "address");
99 }
100 }
void CheckArgs(int timeout, byte[] buffer, PingOptions options)
Definition Ping.cs:71
void TestIsIpSupported(IPAddress ip)
Definition Ping.cs:410
static string net_invalid_ip_addr
Definition SR.cs:16
Definition SR.cs:7

References System.Net.IPAddress.Any, System.buffer, System.Net.NetworkInformation.Ping.CheckArgs(), System.Net.IPAddress.Equals(), System.Net.IPAddress.IPv6Any, System.SR.net_invalid_ip_addr, System.options, System.Net.NetworkInformation.Ping.TestIsIpSupported(), and System.timeout.