IcmpV6Statistics.EchoRequestsReceived Свойство

Определение

Возвращает количество полученных сообщений ICMPv6 "Эхо-запрос" (Echo Request).

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

Значение свойства

Значение типа Int64, указывающее количество полученных сообщений ICMP "Эхо-запрос" (Echo Request).

Примеры

В следующем примере отображается значение этого свойства.

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

Комментарии

Сообщения Echo Request и Echo Reply позволяют компьютеру запрашивать ответ ICMP с удаленного компьютера в сети. Эта функция часто используется для определения допустимости удаленных адресов.

Применяется к