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.

Syntax

public event PingCompletedEventHandler PingCompleted

Remarks

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.

Requirements

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