Bagikan melalui


IcmpV6Statistics Kelas

Definisi

Menyediakan data statistik Protokol Pesan Kontrol Internet untuk Protokol Internet versi 6 (ICMPv6) untuk komputer lokal.

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

Contoh

Contoh berikut menampilkan statistik ICMPv6 saat ini.

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

Keterangan

ICMPV6 adalah serangkaian pesan kesalahan dan informasi untuk digunakan dengan Protokol Internet versi 6 (IPv6). Kelas ini digunakan oleh GetIcmpV6Statistics metode untuk mengembalikan informasi lalu lintas ICMPV6.

Properti di kelas ini berkorelasi dengan objek Basis Informasi Manajemen untuk ICMPv6 yang ditentukan dalam IETF RFC 2466. ICMPv6 didefinisikan dalam RFC 2463.

Konstruktor

IcmpV6Statistics()

Menginisialisasi instans baru kelas IcmpV6Statistics.

Properti

DestinationUnreachableMessagesReceived

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima karena paket memiliki alamat yang tidak dapat dijangkau di tujuannya.

DestinationUnreachableMessagesSent

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim karena paket yang memiliki alamat yang tidak dapat dijangkau di tujuannya.

EchoRepliesReceived

Mendapatkan jumlah pesan Balasan Echo Protokol Kontrol Internet versi 6 (ICMPv6).

EchoRepliesSent

Mendapatkan jumlah pesan Balasan Echo Protokol Kontrol Internet versi 6 (ICMPv6) yang dikirim.

EchoRequestsReceived

Mendapatkan jumlah pesan Permintaan Echo Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima.

EchoRequestsSent

Mendapatkan jumlah pesan Permintaan Echo Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

ErrorsReceived

Mendapatkan jumlah pesan kesalahan Internet Control Message Protocol versi 6 (ICMPv6) yang diterima.

ErrorsSent

Mendapatkan jumlah pesan kesalahan Internet Control Message Protocol versi 6 (ICMPv6) yang dikirim.

MembershipQueriesReceived

Mendapatkan jumlah pesan Kueri Keanggotaan Grup Protokol Manajemen Grup Internet (IGMP) yang diterima.

MembershipQueriesSent

Mendapatkan jumlah pesan Kueri Keanggotaan Grup Internet Group Management Protocol (IGMP) yang dikirim.

MembershipReductionsReceived

Mendapatkan jumlah pesan Pengurangan Keanggotaan Grup Internet Group Management Protocol (IGMP) yang diterima.

MembershipReductionsSent

Mendapatkan jumlah pesan Pengurangan Keanggotaan Grup Internet Group Management Protocol (IGMP) yang dikirim.

MembershipReportsReceived

Mendapatkan jumlah pesan Laporan Keanggotaan Grup Internet Group Management Protocol (IGMP) yang diterima.

MembershipReportsSent

Mendapatkan jumlah pesan Laporan Keanggotaan Grup Internet Group Management Protocol (IGMP) yang dikirim.

MessagesReceived

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima.

MessagesSent

Mendapatkan jumlah pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

NeighborAdvertisementsReceived

Mendapatkan jumlah pesan Iklan Tetangga Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

NeighborAdvertisementsSent

Mendapatkan jumlah pesan Internet Control Message Protocol versi 6 (ICMPv6) Neighbor Advertisement yang dikirim.

NeighborSolicitsReceived

Mendapatkan jumlah pesan Permintaan Tetangga Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

NeighborSolicitsSent

Mendapatkan jumlah pesan Permintaan Tetangga Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

PacketTooBigMessagesReceived

Mendapatkan jumlah pesan Paket Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang diterima.

PacketTooBigMessagesSent

Mendapatkan jumlah pesan Paket Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

ParameterProblemsReceived

Mendapatkan jumlah pesan Masalah Parameter Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

ParameterProblemsSent

Mendapatkan jumlah pesan Masalah Parameter Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

RedirectsReceived

Mendapatkan jumlah pesan Pengalihan Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

RedirectsSent

Mendapatkan jumlah pesan Pengalihan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) yang dikirim.

RouterAdvertisementsReceived

Mendapatkan jumlah pesan Internet Control Message Protocol versi 6 (ICMPv6) Router Advertisement yang diterima.

RouterAdvertisementsSent

Mendapatkan jumlah pesan Internet Control Message Protocol versi 6 (ICMPv6) Router Advertisement yang dikirim.

RouterSolicitsReceived

Mendapatkan jumlah pesan Ajakan Router Internet Control Message Protocol versi 6 (ICMPv6) yang diterima.

RouterSolicitsSent

Mendapatkan jumlah pesan Ajakan Router Internet Control Message Protocol versi 6 (ICMPv6) yang dikirim.

TimeExceededMessagesReceived

Mendapatkan jumlah pesan Time Exceeded Protokol Pesan Kontrol Internet versi 6 (ICMPv6).

TimeExceededMessagesSent

Mendapatkan jumlah Pesan Protokol Pesan Kontrol Internet versi 6 (ICMPv6) Waktu Terlampaui pesan yang dikirim.

Metode

Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari yang saat ini Object.

(Diperoleh dari Object)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Berlaku untuk