IcmpV6Statistics Třída

Definice

Poskytuje protokol IP Control Message Protocol pro protokol ICMPv6 (Internet Protocol verze 6) statistické údaje pro místní počítač.

public ref class IcmpV6Statistics abstract
public abstract class IcmpV6Statistics
type IcmpV6Statistics = class
Public MustInherit Class IcmpV6Statistics
Dědičnost
IcmpV6Statistics

Příklady

Následující příklad zobrazuje aktuální statistiky 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("");
}

Poznámky

ICMPV6 je sada chybových a informačních zpráv pro použití s protokolem IPv6 (Internet Protocol verze 6). Tuto třídu používá GetIcmpV6Statistics metoda k vrácení informací o provozu ICMPV6.

Vlastnosti v této třídě korelují s objekty management information base pro ICMPv6 definované v IETF RFC 2466. ICMPv6 je definován v RFC 2463.

Konstruktory

IcmpV6Statistics()

Inicializuje novou instanci IcmpV6Statistics třídy.

Vlastnosti

DestinationUnreachableMessagesReceived

Získá počet zpráv PROTOKOLU ICMPv6 (Internet Control Message Protocol verze 6) přijatých z důvodu paketu s nedostupnou adresou v cíli.

DestinationUnreachableMessagesSent

Získá počet zpráv PROTOKOLU ICMPv6 (Internet Control Message Protocol verze 6) odeslaných z důvodu paketu, který má nedostupnou adresu v cíli.

EchoRepliesReceived

Získá počet přijatých zpráv odezvy protokolu ICMPv6 (Internet Control Message Protocol verze 6).

EchoRepliesSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

EchoRequestsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

EchoRequestsSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

ErrorsReceived

Získá počet přijatých chybových zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

ErrorsSent

Získá počet odeslaných chybových zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

MembershipQueriesReceived

Získá počet přijatých zpráv protokolu IGMP (Internet Group Management Protocol).

MembershipQueriesSent

Získá počet odeslaných zpráv protokolu IGMP (Internet Group Management Protocol).

MembershipReductionsReceived

Získá počet přijatých zpráv o snížení členství ve skupině protokolu IGMP (Internet Group Management Protocol).

MembershipReductionsSent

Získá počet odeslaných zpráv o snížení členství ve skupině protokolu IGMP (Internet Group Management Protocol).

MembershipReportsReceived

Získá počet přijatých zpráv o členství ve skupině protokolu IGMP (Internet Group Management Protocol).

MembershipReportsSent

Získá počet odeslaných zpráv o členství ve skupině protokolu IGMP (Internet Group Management Protocol).

MessagesReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

MessagesSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

NeighborAdvertisementsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

NeighborAdvertisementsSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

NeighborSolicitsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

NeighborSolicitsSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

PacketTooBigMessagesReceived

Získá počet přijatých paketů protokolu ICMPv6 (Internet Control Message Protocol verze 6).

PacketTooBigMessagesSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

ParameterProblemsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6) parametru.

ParameterProblemsSent

Získá počet odeslaných zpráv o parametru IP Control Message Protocol verze 6 (ICMPv6).

RedirectsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

RedirectsSent

Získá počet odeslaných zpráv PROTOKOLU ICMPv6 (Internet Control Message Protocol verze 6).

RouterAdvertisementsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

RouterAdvertisementsSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

RouterSolicitsReceived

Získá počet přijatých zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

RouterSolicitsSent

Získá počet odeslaných zpráv protokolu ICMPv6 (Internet Control Message Protocol verze 6).

TimeExceededMessagesReceived

Získá počet přijatých zpráv PROTOKOLU ICMPv6 (Internet Control Message Protocol verze 6).

TimeExceededMessagesSent

Získá počet odeslaných zpráv PROTOKOLU ICMPv6 (Internet Control Message Protocol verze 6).

Metody

Equals(Object)

Určí, zda se zadaný objekt rovná aktuálnímu objektu.

(Zděděno od Object)
GetHashCode()

Slouží jako výchozí hashovací funkce.

(Zděděno od Object)
GetType()

Získá aktuální Type instanci.

(Zděděno od Object)
MemberwiseClone()

Vytvoří mělkou kopii aktuálního Objectsouboru .

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.

(Zděděno od Object)

Platí pro