Partilhar via


IcmpV4Statistics.TimestampRepliesReceived Propriedade

Definição

Obtém o número de mensagens de Resposta de Carimbo de Data/Hora de ICMPv4 (protocolo ICMPv4) que foram recebidas.

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

Valor da propriedade

Um Int64 valor que especifica o número total de mensagens de resposta de carimbo de data/hora recebidas.

Exemplos

O exemplo a seguir exibe o valor dessa propriedade.

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

Comentários

Uma mensagem de solicitação de carimbo de data/hora faz com que o computador receptor envie uma resposta de carimbo de data/hora de volta para o computador de origem. Essas mensagens são usadas para medir a velocidade de transmissão em uma rede.

Aplica-se a