共用方式為


IcmpV6Statistics 類別

定義

提供本機電腦之網際網路通訊協定第 6 版的網際網路控制訊息通訊協定 (ICMPv6) 統計資料。

public ref class IcmpV6Statistics abstract
public abstract class IcmpV6Statistics
type IcmpV6Statistics = class
Public MustInherit Class IcmpV6Statistics
繼承
IcmpV6Statistics

範例

下列範例會顯示目前的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("");
}

備註

ICMPV6 是一組錯誤和參考訊息,可與因特網通訊協定第 6 版 (IPv6) 搭配使用。 此方法會 GetIcmpV6Statistics 使用此類別來傳回ICMPV6流量資訊。

此類別中的屬性會與IETF RFC 2466 中定義的ICMPv6管理資訊基底物件相互關聯。 ICMPv6 定義於 RFC 2463 中。

建構函式

IcmpV6Statistics()

初始化 IcmpV6Statistics 類別的新執行個體。

屬性

DestinationUnreachableMessagesReceived

取得由於封包有無法到達的目的位址而收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 訊息數目。

DestinationUnreachableMessagesSent

取得由於封包有無法到達的目的位址而傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 訊息數目。

EchoRepliesReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「回應回覆」訊息數目。

EchoRepliesSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「回應回覆」訊息數目。

EchoRequestsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「回應要求」訊息數目。

EchoRequestsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「回應要求」訊息數目。

ErrorsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 錯誤訊息數目。

ErrorsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 錯誤訊息數目。

MembershipQueriesReceived

取得已收到的網際網路群組管理通訊協定 (Internet Group Management Protocol,IGMP)「群組成員資格查詢」訊息數目。

MembershipQueriesSent

取得已傳送的網際網路群組管理通訊協定 (IGMP)「群組成員資格查詢」訊息數目。

MembershipReductionsReceived

取得已收到的網際網路群組管理通訊協定 (IGMP)「群組成員資格簡化」訊息數目。

MembershipReductionsSent

取得已傳送的網際網路群組管理通訊協定 (IGMP)「群組成員資格簡化」訊息數目。

MembershipReportsReceived

取得已收到的網際網路群組管理通訊協定 (IGMP)「群組成員資格報告」訊息數目。

MembershipReportsSent

取得已傳送的網際網路群組管理通訊協定 (IGMP)「群組成員資格報告」訊息數目。

MessagesReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 訊息數目。

MessagesSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 訊息數目。

NeighborAdvertisementsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「近鄰通告」(Neighbor Advertisement) 訊息數目。

NeighborAdvertisementsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「近鄰通告」訊息數目。

NeighborSolicitsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「近鄰請求」訊息數目。

NeighborSolicitsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「近鄰請求」訊息數目。

PacketTooBigMessagesReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「封包太大」訊息數目。

PacketTooBigMessagesSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「封包太大」訊息數目。

ParameterProblemsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「參數問題」訊息數目。

ParameterProblemsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「參數問題」訊息數目。

RedirectsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「重新導向」訊息數目。

RedirectsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「重新導向」訊息數目。

RouterAdvertisementsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「路由器通告」訊息數目。

RouterAdvertisementsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「路由器通告」訊息數目。

RouterSolicitsReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「路由器請求」訊息數目。

RouterSolicitsSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「路由器請求」訊息數目。

TimeExceededMessagesReceived

取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「超過時間」訊息數目。

TimeExceededMessagesSent

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「超過時間」訊息數目。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於