System.Net.NetworkInformation.Ping.SendPingAsync C# (CSharp) Method

SendPingAsync() public method

public SendPingAsync ( System address ) : System.Threading.Tasks.Task
address System
return System.Threading.Tasks.Task
        public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address) { throw null; }
        public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(System.Net.IPAddress address, int timeout) { throw null; }

Same methods

Ping::SendPingAsync ( System address, int timeout ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( System address, int timeout, byte buffer ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( System address, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( string hostNameOrAddress ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( string hostNameOrAddress, int timeout ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer ) : System.Threading.Tasks.Task
Ping::SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task

Usage Example

 async private void PingButton_Click(object sender, EventArgs e)
 {
     StatusLabel.Text = "Pinging…";
     Ping ping = new Ping();
     PingReply pingReply =
         await ping.SendPingAsync("yahoo.com");
     StatusLabel.Text = pingReply.Status.ToString();
 }
All Usage Examples Of System.Net.NetworkInformation.Ping::SendPingAsync