Condividi tramite


IcmpV6Statistics.EchoRequestsSent Proprietà

Definizione

Ottiene il numero di messaggi Echo Request del protocollo ICMPv6 inviati.

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi Echo Request del protocollo ICMP inviati.

Esempio

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

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

Commenti

I messaggi Echo Request e Echo Reply consentono a un computer di richiedere una risposta ICMP da un computer remoto in una rete. Questa funzionalità viene spesso usata per determinare la validità degli indirizzi remoti.

Si applica a