Duration (Pacific Standard Time):
To (Pacific Standard Time):
  • None
User Action:
  • None
.NET Framework Class Library

PingCompletedEventArgs.Reply Property

Note: This property is new in the .NET Framework version 2.0.

Gets an object that contains data that describes an attempt to send an Internet Control Message Protocol (ICMP) echo request message and receive a corresponding ICMP echo reply message.

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

Public ReadOnly Property Reply As PingReply
Dim instance As PingCompletedEventArgs
Dim value As PingReply

value = instance.Reply

/** @property */
public PingReply get_Reply ()

Property Value

A PingReply object that describes the results of the ICMP echo request.

If the value of Status is not Success, you should not use the values that are returned by the RoundTripTime, Options, and Buffer properties. The RoundTripTime and Buffer properties will return zero, and the Options property will return a null reference (Nothing in Visual Basic).

The following code example implements a method that is used to respond to a PingCompleted event. For the complete example, see the PingCompletedEventArgs class overview.

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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0