System.Net.NetworkInformation.PingReply.RoundtripTime Property

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

Syntax

public long RoundtripTime { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the Echo request fails, the PingReply.RoundtripTime time is reported as 0, which is also a valid value when the request succeeds. You must check the PingReply.Status to determine whether the value returned by this property should be ignored.

Requirements

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