Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Status Property
Collapse the table of content
Expand the table of content

PingReply.Status Property

Gets the status of an attempt to send an Internet Control Message Protocol (ICMP) echo request and receive the corresponding ICMP echo reply message.

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

'Declaration
Public ReadOnly Property Status As IPStatus

Property Value

Type: System.Net.NetworkInformation.IPStatus
An IPStatus value indicating the result of the request.

If the value of Status is not Success, you should not use the values returned by the RoundtripTime, Options or Buffer properties. The RoundtripTime and Buffer properties will return zero, and the Options property will return Nothing.

The following code example demonstrates using Ping class to send an ICMP echo request synchronously and display the response.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft