IcmpV4Statistics.TimestampRepliesSent Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Reply messages that were sent.
public:
abstract property long TimestampRepliesSent { long get(); };
public abstract long TimestampRepliesSent { get; }
member this.TimestampRepliesSent : int64
Public MustOverride ReadOnly Property TimestampRepliesSent As Long
An Int64 value that specifies the total number of Timestamp Reply messages that were sent.
The following example displays the value of this property.
void ShowTimestampData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
Console::WriteLine( " Timestamp Requests .................. Sent: {0,-10} Received: {1,-10}",
statistics->TimestampRequestsSent,
statistics->TimestampRequestsReceived );
Console::WriteLine( " Timestamp Replies ................... Sent: {0,-10} Received: {1,-10}",
statistics->TimestampRepliesSent,
statistics->TimestampRepliesReceived );
}
public static void ShowTimestampData()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
Console.WriteLine(" Timestamp Requests .................. Sent: {0,-10} Received: {1,-10}",
statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived);
Console.WriteLine(" Timestamp Replies ................... Sent: {0,-10} Received: {1,-10}",
statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived);
}
Public Shared Sub ShowTimestampData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
Console.WriteLine(" Timestamp Requests .................. Sent: {0,-10} Received: {1,-10}", statistics.TimestampRequestsSent, statistics.TimestampRequestsReceived)
Console.WriteLine(" Timestamp Replies ................... Sent: {0,-10} Received: {1,-10}", statistics.TimestampRepliesSent, statistics.TimestampRepliesReceived)
End Sub
A Timestamp Request message causes the receiving computer to send a timestamp reply back to the originating computer. These messages are used to measure the transmission speed on a network.
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: