In The Hand - .NET Components for Mobility
IcmpV6Statistics Class
NamespacesInTheHand.Net.NetworkInformationIcmpV6Statistics
Provides Internet Control Message Protocol for Internet Protocol version 6 (ICMPv6) statistical data for the local computer.
Declaration Syntax
C#Visual Basic
public sealed class IcmpV6Statistics
Public NotInheritable Class IcmpV6Statistics
Members
All MembersMethodsProperties



IconMemberDescription
DestinationUnreachableMessagesReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages that were received because of a packet having an unreachable address in its destination.

DestinationUnreachableMessagesSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages that were sent because of a packet having an unreachable address in its destination.

EchoRepliesReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages that were received.

EchoRepliesSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages that were sent.

EchoRequestsReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages that were received.

EchoRequestsSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages that were sent.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ErrorsReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages that were received.

ErrorsSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages that were sent.

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MessagesReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages that were received.

MessagesSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) messages that were sent.

ParameterProblemsReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages that were received.

ParameterProblemsSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages that were sent.

RedirectsReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages that were received.

RedirectsSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages that were sent.

TimeExceededMessagesReceived
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages that were received.

TimeExceededMessagesSent
Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages that were sent.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
ICMPV6 is a set of error and informational messages for use with Internet Protocol version 6 (IPv6). This class is used by the GetIcmpV6Statistics()()() method to return ICMPV6 traffic information.

ICMPv6 is defined in RFC 2463.

Examples
The following example displays the current ICMPv6 statistics.
CopyC#
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("");
}
Inheritance Hierarchy
Object
IcmpV6Statistics
See Also
[!:System.Net.NetworkInformation.IcmpV6Statistics]

Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 2.1.0.0