Compartilhar via


IcmpV4Statistics.TimestampRequestsSent Propriedade

Definição

Obtém o número de mensagens de Solicitação de Carimbo de Data/Hora de ICMPv4 (protocolo ICMPv4) que foram enviadas.

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

Valor da propriedade

Um Int64 valor que especifica o número total de mensagens de solicitação de carimbo de data/hora que foram enviadas.

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