Share via


IcmpV6Statistics.EchoRequestsSent Propiedad

Definición

Obtiene el número de mensajes de solicitud de eco ICMPv6 (Protocolo de mensajes de control de Internet versión 6) que se han enviado.

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

Valor de propiedad

Valor Int64 que especifica el número total de mensajes de solicitud de eco ICMP que se han enviado.

Ejemplos

En el ejemplo siguiente se muestra el valor de esta propiedad.

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

Comentarios

Los mensajes Echo Request y Echo Reply permiten a un equipo solicitar una respuesta ICMP desde un equipo remoto en una red. Esta funcionalidad se usa a menudo para determinar la validez de las direcciones remotas.

Se aplica a