Partilhar via


IcmpV6Statistics.EchoRepliesSent Propriedade

Definição

Obtém o número de mensagens de resposta de eco de ICMPv6 (protocolo ICMPv6) enviadas.

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

Valor da propriedade

Um Int64 valor que especifica o número total de mensagens de resposta de eco ICMP enviadas.

Exemplos

O exemplo a seguir exibe o valor dessa propriedade.

void ShowIcmpV6EchoData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( "  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", 
      statistics->EchoRequestsSent, statistics->EchoRequestsReceived );
   Console::WriteLine( "  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->EchoRepliesSent, statistics->EchoRepliesReceived );
}
public static void ShowIcmpV6EchoData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
    Console.WriteLine ("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV6EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)

End Sub

Comentários

As mensagens Echo Request e Echo Reply permitem que um computador solicite uma resposta ICMP de um computador remoto em uma rede. Essa funcionalidade geralmente é usada para determinar a validade de endereços remotos.

Aplica-se a