IcmpV4Statistics.TimestampRequestsSent 属性

定义

获取已发送的 Internet 控制消息协议版本 4 (ICMPv4)“时间戳请求”消息的数目。Gets the number of Internet Control Message Protocol version 4 (ICMPv4) Timestamp Request messages that were sent.

public:
 abstract property long TimestampRequestsSent { long get(); };
public abstract long TimestampRequestsSent { get; }
member this.TimestampRequestsSent : int64
Public MustOverride ReadOnly Property TimestampRequestsSent As Long

属性值

Int64

一个 Int64 值,指定已发送的“时间戳请求”消息的总数。An Int64 value that specifies the total number of Timestamp Request 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.

适用于