IcmpV6Statistics Klasa

Definicja

Udostępnia dane statystyczne protokołu ICMPv6 (Internet Control Message Protocol dla protokołu internetowego w wersji 6) dla komputera lokalnego.

public ref class IcmpV6Statistics abstract
public abstract class IcmpV6Statistics
type IcmpV6Statistics = class
Public MustInherit Class IcmpV6Statistics
Dziedziczenie
IcmpV6Statistics

Przykłady

W poniższym przykładzie są wyświetlane bieżące statystyki ICMPv6.

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("");
}

Uwagi

ICMPV6 to zestaw komunikatów o błędach i informacjach do użytku z protokołem internetowym w wersji 6 (IPv6). Ta klasa jest używana przez metodę GetIcmpV6Statistics do zwracania informacji o ruchu ICMPV6.

Właściwości w tej klasie są skorelowane z obiektami bazy informacji zarządzania dla protokołu ICMPv6 zdefiniowanymi w dokumencie IETF RFC 2466. Protokół ICMPv6 jest zdefiniowany w dokumencie RFC 2463.

Konstruktory

IcmpV6Statistics()

Inicjuje nowe wystąpienie klasy IcmpV6Statistics.

Właściwości

DestinationUnreachableMessagesReceived

Pobiera liczbę odebranych komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6) z powodu pakietu o nieosiągalnym adresie w miejscu docelowym.

DestinationUnreachableMessagesSent

Pobiera liczbę komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6) wysłanych z powodu pakietu o nieosiągalnym adresie w miejscu docelowym.

EchoRepliesReceived

Pobiera liczbę odebranych komunikatów odpowiedzi echa protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

EchoRepliesSent

Pobiera liczbę wysłanych komunikatów odpowiedzi echa protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

EchoRequestsReceived

Pobiera liczbę odebranych komunikatów żądania echa protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

EchoRequestsSent

Pobiera liczbę wysłanych komunikatów żądania echa protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

ErrorsReceived

Pobiera liczbę odebranych komunikatów o błędach protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

ErrorsSent

Pobiera liczbę wysłanych komunikatów o błędach protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

MembershipQueriesReceived

Pobiera liczbę odebranych komunikatów zapytań dotyczących członkostwa w grupie protokołu IGMP (Internet Group Management Protocol).

MembershipQueriesSent

Pobiera liczbę wysłanych komunikatów zapytań dotyczących członkostwa w grupie protokołu IGMP (Internet Group Management Protocol).

MembershipReductionsReceived

Pobiera liczbę odebranych komunikatów redukcji członkostwa w grupach protokołu IGMP (Internet Group Management Protocol).

MembershipReductionsSent

Pobiera liczbę wysłanych komunikatów redukcji członkostwa w grupie protokołu IGMP (Internet Group Management Protocol).

MembershipReportsReceived

Pobiera liczbę odebranych komunikatów raportu członkostwa w grupie protokołu IGMP (Internet Group Management Protocol).

MembershipReportsSent

Pobiera liczbę wysłanych komunikatów raportu członkostwa w grupie protokołu IGMP (Internet Group Management Protocol).

MessagesReceived

Pobiera liczbę odebranych komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

MessagesSent

Pobiera liczbę wysłanych komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

NeighborAdvertisementsReceived

Pobiera liczbę odebranych komunikatów anonsowania sąsiada protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

NeighborAdvertisementsSent

Pobiera liczbę wysłanych komunikatów anonsowania sąsiada protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

NeighborSolicitsReceived

Pobiera liczbę odebranych komunikatów o żądaniu sąsiada protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

NeighborSolicitsSent

Pobiera liczbę wysłanych komunikatów o żądaniu sąsiada protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

PacketTooBigMessagesReceived

Pobiera liczbę odebranych komunikatów protokołu ICMPv6 (ICMPv6) w wersji 6.

PacketTooBigMessagesSent

Pobiera liczbę wysłanych zbyt dużych komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

ParameterProblemsReceived

Pobiera liczbę odebranych komunikatów o problemie z parametrami protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

ParameterProblemsSent

Pobiera liczbę wysłanych komunikatów o problemie z parametrami protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RedirectsReceived

Pobiera liczbę odebranych komunikatów przekierowania protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RedirectsSent

Pobiera liczbę wysłanych komunikatów przekierowania protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RouterAdvertisementsReceived

Pobiera liczbę odebranych komunikatów anonsowania routera protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RouterAdvertisementsSent

Pobiera liczbę wysłanych komunikatów anonsowania routera protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RouterSolicitsReceived

Pobiera liczbę odebranych komunikatów dotyczących żądań routera protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

RouterSolicitsSent

Pobiera liczbę wysłanych komunikatów protokołu ICMPv6 (ICMPv6) Router Solicitation protokołu Internet Control Message Protocol.

TimeExceededMessagesReceived

Pobiera liczbę odebranych komunikatów protokołu ICMPv6 (ICMPv6).

TimeExceededMessagesSent

Pobiera liczbę wysłanych komunikatów protokołu ICMPv6 (Internet Control Message Protocol w wersji 6).

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy