Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PingCompletedEventHandler Delegate

 

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:
© 2017 Microsoft