Ping::SendAsync Method
Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message to a computer, and receive a corresponding ICMP echo reply message from that computer.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | SendAsync(IPAddress^, Int32, array<Byte>^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message with the specified data buffer to the computer that has the specified IPAddress, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation. |
![]() | SendAsync(IPAddress^, Int32, array<Byte>^, PingOptions^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message with the specified data buffer to the computer that has the specified IPAddress, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation and control fragmentation and Time-to-Live values for the ICMP echo message packet. |
![]() | SendAsync(IPAddress^, Int32, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message to the computer that has the specified IPAddress, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation. |
![]() | SendAsync(IPAddress^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message to the computer that has the specified IPAddress, and receive a corresponding ICMP echo reply message from that computer. |
![]() | SendAsync(String^, Int32, array<Byte>^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message with the specified data buffer to the specified computer, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation. |
![]() | SendAsync(String^, Int32, array<Byte>^, PingOptions^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message with the specified data buffer to the specified computer, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation and control fragmentation and Time-to-Live values for the ICMP packet. |
![]() | SendAsync(String^, Int32, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message to the specified computer, and receive a corresponding ICMP echo reply message from that computer. This overload allows you to specify a time-out value for the operation. |
![]() | SendAsync(String^, Object^) | Asynchronously attempts to send an Internet Control Message Protocol (ICMP) echo message to the specified computer, and receive a corresponding ICMP echo reply message from that computer. |
These methods do not cause your application's main thread to block. If you want to block while waiting for the ICMP echo reply message, use the Send methods.
Note |
|---|
The IP address returned by any of the SendAsync methods can originate from a malicious remote computer. Do not connect to the remote computer using this. Use DNS to determine the IP address of the machine to which you want to connect. |

