IcmpV4Statistics.TimestampRequestsReceived Свойство

Определение

Возвращает количество полученных сообщений ICMPv4 "Запрос штампа времени" (Timestamp Request).

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

Значение свойства

Значение типа Int64, указывающее общее количество полученных сообщений "Запрос штампа времени" (Timestamp Request).

Примеры

В следующем примере отображается значение этого свойства.

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

Комментарии

Сообщение о запросе метки времени приводит к тому, что принимающий компьютер отправляет ответ метки времени обратно на исходный компьютер. Эти сообщения используются для измерения скорости передачи в сети.

Применяется к