PingCompletedEventHandler Delegate

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents the method that will handle the PingCompleted event of a Ping object.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

Public Delegate Sub PingCompletedEventHandler (
	sender As Object,
	e As PingCompletedEventArgs
)

Parameters

sender
Type: System.Object

The source of the PingCompleted event.

e
Type: System.Net.NetworkInformation.PingCompletedEventArgs

A PingCompletedEventArgs object that contains the event data.

User data that is specified in a SendAsync call is available to the method invoked by this delegate in the UserState property.

The following code example demonstrates specifying a PingCompletedEventHandler to respond to a PingCompleted event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: