public SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task |
||
hostNameOrAddress | string | |
timeout | int | |
buffer | byte | |
options | System | |
return | System.Threading.Tasks.Task |
public System.Threading.Tasks.Task<System.Net.NetworkInformation.PingReply> SendPingAsync(string hostNameOrAddress, int timeout, byte[] buffer, System.Net.NetworkInformation.PingOptions options) { throw null; }
}
Ping::SendPingAsync ( System address ) : System.Threading.Tasks.Task |
|
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 |
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(); }