IcmpV4Statistics.TimestampRequestsSent 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已發送的網際網路控制訊息協定(ICMPv4)時間戳請求訊息數量。
public:
abstract property long TimestampRequestsSent { long get(); };
public abstract long TimestampRequestsSent { get; }
member this.TimestampRequestsSent : int64
Public MustOverride ReadOnly Property TimestampRequestsSent As Long
屬性值
一個 Int64 指定已發送的時間戳請求訊息總數的值。
範例
以下範例展示了此性質的價值。
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
備註
時間戳請求訊息會使接收端電腦向原始電腦發送時間戳記回覆。 這些訊息用來測量網路上的傳輸速度。