IcmpV6Statistics Класс

Определение

Предоставляет статистику протокола ICMPv6 для локального компьютера.Provides Internet Control Message Protocol for Internet Protocol version 6 (ICMPv6) statistical data for the local computer.

public ref class IcmpV6Statistics abstract
public abstract class IcmpV6Statistics
type IcmpV6Statistics = class
Public MustInherit Class IcmpV6Statistics
Наследование
IcmpV6Statistics

Примеры

В следующем примере отображается текущая статистика ICMPv6.The following example displays the current ICMPv6 statistics.

void ShowIcmpV6Statistics()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ stat = properties->GetIcmpV6Statistics();
   Console::WriteLine( "ICMP V6 Statistics:" );
   Console::WriteLine( "  Messages ............................ Sent: {0,-10}   Received: {1,-10}", stat->MessagesSent, stat->MessagesReceived );
   Console::WriteLine( "  Errors .............................. Sent: {0,-10}   Received: {1,-10}", stat->ErrorsSent, stat->ErrorsReceived );
   Console::WriteLine( "  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", stat->EchoRequestsSent, stat->EchoRequestsReceived );
   Console::WriteLine( "  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", stat->EchoRepliesSent, stat->EchoRepliesReceived );
   Console::WriteLine( "  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}", stat->DestinationUnreachableMessagesSent, stat->DestinationUnreachableMessagesReceived );
   Console::WriteLine( "  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}", stat->ParameterProblemsSent, stat->ParameterProblemsReceived );
   Console::WriteLine( "  Packets Too Big ..................... Sent: {0,-10}   Received: {1,-10}", stat->PacketTooBigMessagesSent, stat->PacketTooBigMessagesReceived );
   Console::WriteLine( "  Redirects ........................... Sent: {0,-10}   Received: {1,-10}", stat->RedirectsSent, stat->RedirectsReceived );
   Console::WriteLine( "  Router Advertisements ............... Sent: {0,-10}   Received: {1,-10}", stat->RouterAdvertisementsSent, stat->RouterAdvertisementsReceived );
   Console::WriteLine( "  Router Solicitations ................ Sent: {0,-10}   Received: {1,-10}", stat->RouterSolicitsSent, stat->RouterSolicitsReceived );
   Console::WriteLine( "  Time Exceeded ....................... Sent: {0,-10}   Received: {1,-10}", stat->TimeExceededMessagesSent, stat->TimeExceededMessagesReceived );
   Console::WriteLine( "  Neighbor Advertisements ............. Sent: {0,-10}   Received: {1,-10}", stat->NeighborAdvertisementsSent, stat->NeighborAdvertisementsReceived );
   Console::WriteLine( "  Neighbor Solicitations .............. Sent: {0,-10}   Received: {1,-10}", stat->NeighborSolicitsSent, stat->NeighborSolicitsReceived );
   Console::WriteLine( "  Membership Queries .................. Sent: {0,-10}   Received: {1,-10}", stat->MembershipQueriesSent, stat->MembershipQueriesReceived );
   Console::WriteLine( "  Membership Reports .................. Sent: {0,-10}   Received: {1,-10}", stat->MembershipReportsSent, stat->MembershipReportsReceived );
   Console::WriteLine( "  Membership Reductions ............... Sent: {0,-10}   Received: {1,-10}", stat->MembershipReductionsSent, stat->MembershipReductionsReceived );
   Console::WriteLine( "" );
}
public static void ShowIcmpV6Statistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics stat = properties.GetIcmpV6Statistics();
    Console.WriteLine("ICMP V6 Statistics:");
    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}",
        stat.MessagesSent, stat.MessagesReceived);
    Console.WriteLine("  Errors .............................. Sent: {0,-10}   Received: {1,-10}",
        stat.ErrorsSent, stat.ErrorsReceived);
        
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRequestsSent, stat.EchoRequestsReceived);
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        stat.EchoRepliesSent, stat.EchoRepliesReceived);
    
    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}",
        stat.DestinationUnreachableMessagesSent, stat.DestinationUnreachableMessagesReceived);
        
    Console.WriteLine("  Parameter Problems .................. Sent: {0,-10}   Received: {1,-10}",
        stat.ParameterProblemsSent, stat.ParameterProblemsReceived);        
        
    Console.WriteLine("  Packets Too Big ..................... Sent: {0,-10}   Received: {1,-10}",
        stat.PacketTooBigMessagesSent, stat.PacketTooBigMessagesReceived);
        
    Console.WriteLine("  Redirects ........................... Sent: {0,-10}   Received: {1,-10}",
        stat.RedirectsSent, stat.RedirectsReceived);
        
    Console.WriteLine("  Router Advertisements ............... Sent: {0,-10}   Received: {1,-10}",
        stat.RouterAdvertisementsSent, stat.RouterAdvertisementsReceived);                    
    Console.WriteLine("  Router Solicitations ................ Sent: {0,-10}   Received: {1,-10}",
        stat.RouterSolicitsSent, stat.RouterSolicitsReceived);        
        
    Console.WriteLine("  Time Exceeded ....................... Sent: {0,-10}   Received: {1,-10}",
        stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);
                                
    Console.WriteLine("  Neighbor Advertisements ............. Sent: {0,-10}   Received: {1,-10}",
        stat.NeighborAdvertisementsSent, stat.NeighborAdvertisementsReceived);        
    Console.WriteLine("  Neighbor Solicitations .............. Sent: {0,-10}   Received: {1,-10}",
        stat.NeighborSolicitsSent, stat.NeighborSolicitsReceived);        
    
    Console.WriteLine("  Membership Queries .................. Sent: {0,-10}   Received: {1,-10}",
        stat.MembershipQueriesSent, stat.MembershipQueriesReceived);    
    Console.WriteLine("  Membership Reports .................. Sent: {0,-10}   Received: {1,-10}",
        stat.MembershipReportsSent, stat.MembershipReportsReceived);    
    Console.WriteLine("  Membership Reductions ............... Sent: {0,-10}   Received: {1,-10}",
        stat.MembershipReductionsSent, stat.MembershipReductionsReceived);    
        
    Console.WriteLine("");
}

Комментарии

ICMPV6 — это набор сообщений об ошибках и информационные сообщения для использования с протоколом IP версии 6 (IPv6).ICMPV6 is a set of error and informational messages for use with Internet Protocol version 6 (IPv6). Этот класс используется методом GetIcmpV6Statistics для получения сведений о трафике ICMPV6.This class is used by the GetIcmpV6Statistics method to return ICMPV6 traffic information.

Свойства в этом классе сопоставляются с базовыми объектами сведений об управлении для ICMPv6, определенными в IETF RFC 2466.The properties in this class correlate to the Management Information Base objects for ICMPv6 defined in IETF RFC 2466. ICMPv6 определяется в RFC 2463.ICMPv6 is defined in RFC 2463.

Конструкторы

IcmpV6Statistics()

Инициализирует новый экземпляр класса IcmpV6Statistics.Initializes a new instance of the IcmpV6Statistics class.

Свойства

DestinationUnreachableMessagesReceived

Возвращает количество сообщений ICMPv6, полученных из-за того, что пакет имеет недоступный адрес в поле назначения.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages received because of a packet having an unreachable address in its destination.

DestinationUnreachableMessagesSent

Возвращает количество сообщений ICMPv6, отправленных из-за того, что пакет имеет недоступный адрес в поле назначения.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages sent because of a packet having an unreachable address in its destination.

EchoRepliesReceived

Возвращает количество полученных сообщений ICMPv6 "Эхо-ответ" (Echo Reply).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages received.

EchoRepliesSent

Возвращает количество отправленных сообщений ICMPv6 "Эхо-ответ" (Echo Reply).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages sent.

EchoRequestsReceived

Возвращает количество полученных сообщений ICMPv6 "Эхо-запрос" (Echo Request).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages received.

EchoRequestsSent

Возвращает количество отправленных сообщений ICMPv6 "Эхо-запрос" (Echo Request).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages sent.

ErrorsReceived

Возвращает количество полученных сообщений ICMPv6 об ошибках.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages received.

ErrorsSent

Возвращает количество отправленных сообщений ICMPv6 об ошибках.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages sent.

MembershipQueriesReceived

Возвращает количество полученных сообщений IGMP "Запрос о членстве в группе" (Group Membership Query).Gets the number of Internet Group management Protocol (IGMP) Group Membership Query messages received.

MembershipQueriesSent

Возвращает количество отправленных сообщений IGMP "Запрос о членстве в группе" (Group Membership Query).Gets the number of Internet Group management Protocol (IGMP) Group Membership Query messages sent.

MembershipReductionsReceived

Возвращает количество полученных сообщений IGMP "Прекращение членства в группе" (Group Membership Reduction).Gets the number of Internet Group Management Protocol (IGMP) Group Membership Reduction messages received.

MembershipReductionsSent

Возвращает количество отправленных сообщений IGMP "Прекращение членства в группе" (Group Membership Reduction).Gets the number of Internet Group Management Protocol (IGMP) Group Membership Reduction messages sent.

MembershipReportsReceived

Возвращает количество полученных сообщений IGMP "Отчет о членстве в группе" (Group Membership Report).Gets the number of Internet Group Management Protocol (IGMP) Group Membership Report messages received.

MembershipReportsSent

Возвращает количество отправленных сообщений IGMP "Отчет о членстве в группе" (Group Membership Report).Gets the number of Internet Group Management Protocol (IGMP) Group Membership Report messages sent.

MessagesReceived

Возвращает количество полученных сообщений ICMPv6.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages received.

MessagesSent

Возвращает количество отправленных сообщений ICMPv6.Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages sent.

NeighborAdvertisementsReceived

Возвращает количество полученных сообщений ICMPv6 "Объявление соседа" (Neighbor Advertisement).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Advertisement messages received.

NeighborAdvertisementsSent

Возвращает количество отправленных сообщений ICMPv6 "Объявление соседа" (Neighbor Advertisement).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Advertisement messages sent.

NeighborSolicitsReceived

Возвращает количество полученных сообщений ICMPv6 "Запрос соседа" (Neighbor Solicitation).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Solicitation messages received.

NeighborSolicitsSent

Возвращает количество отправленных сообщений ICMPv6 "Запрос соседа" (Neighbor Solicitation).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Solicitation messages sent.

PacketTooBigMessagesReceived

Возвращает количество полученных сообщений ICMPv6 "Пакет слишком велик" (Packet Too Big).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Packet Too Big messages received.

PacketTooBigMessagesSent

Возвращает количество отправленных сообщений ICMPv6 "Пакет слишком велик" (Packet Too Big).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Packet Too Big messages sent.

ParameterProblemsReceived

Возвращает количество полученных сообщений ICMPv6 "Ошибка параметра" (Parameter Problem).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages received.

ParameterProblemsSent

Возвращает количество отправленных сообщений ICMPv6 "Ошибка параметра" (Parameter Problem).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages sent.

RedirectsReceived

Возвращает количество полученных сообщений ICMPv6 "Перенаправление маршрута" (Redirect).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages received.

RedirectsSent

Возвращает количество отправленных сообщений ICMPv6 "Перенаправление маршрута" (Redirect).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages sent.

RouterAdvertisementsReceived

Возвращает количество полученных сообщений ICMPv6 "Объявление маршрутизатора" (Router Advertisement).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Advertisement messages received.

RouterAdvertisementsSent

Возвращает количество отправленных сообщений ICMPv6 "Объявление маршрутизатора".Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Advertisement messages sent.

RouterSolicitsReceived

Возвращает количество полученных сообщений ICMPv6 "Запрос маршрутизатора" (Router Solicitation).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Solicitation messages received.

RouterSolicitsSent

Возвращает количество отправленных сообщений ICMPv6 "Запрос маршрутизатора" (Router Solicitation).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Solicitation messages sent.

TimeExceededMessagesReceived

Возвращает количество полученных сообщений ICMPv6 "Превышено время" (Time Exceeded).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages received.

TimeExceededMessagesSent

Возвращает количество отправленных сообщений ICMPv6 "Превышено время" (Time Exceeded).Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages sent.

Методы

Equals(Object)

Определяет, равен ли указанный объект текущему объекту.Determines whether the specified object is equal to the current object.

(Унаследовано от Object)
GetHashCode()

Служит в качестве хэш-функции по умолчанию.Serves as the default hash function.

(Унаследовано от Object)
GetType()

Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance.

(Унаследовано от Object)
MemberwiseClone()

Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object.

(Унаследовано от Object)
ToString()

Возвращает строку, представляющую текущий объект.Returns a string that represents the current object.

(Унаследовано от Object)

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