System.Net.NetworkInformation.Ping.PingCompleted Event

Occurs when an asynchronous operation to send an Internet Control Message Protocol (ICMP) echo message and receive the corresponding ICMP echo reply message completes or is canceled.


public event PingCompletedEventHandler PingCompleted


Applications use the Ping.PingCompleted event to get information about the completion status and data collected by a call to one of the erload:System.Net.NetworkInformation.Ping.SendAsync methods. The System.Net.NetworkInformation.PingCompletedEventHandler delegate provides the call back method invoked when erload:System.Net.NetworkInformation.Ping.SendAsync raises this event.


Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0