Condividi tramite


IcmpV4Statistics.TimestampRepliesReceived Proprietà

Definizione

Ottiene il numero di messaggi Timestamp Reply del protocollo ICMPv4 ricevuti.

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi Timestamp Reply ricevuti.

Esempio

Nell'esempio seguente viene visualizzato il valore di questa proprietà.

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

Commenti

Un messaggio di richiesta timestamp fa sì che il computer ricevente invii una risposta timestamp al computer di origine. Questi messaggi vengono usati per misurare la velocità di trasmissione in una rete.

Si applica a