IcmpV6Statistics Class

Provides Internet Control Message Protocol for Internet Protocol version 6 (ICMPv6) statistical data for the local computer.

System.Object
  System.Net.NetworkInformation.IcmpV6Statistics

Namespace:  System.Net.NetworkInformation
Assembly:  System (in System.dll)

public abstract class IcmpV6Statistics

The IcmpV6Statistics type exposes the following members.

  NameDescription
Protected methodIcmpV6StatisticsInitializes a new instance of the IcmpV6Statistics class.
Top

  NameDescription
Public propertyDestinationUnreachableMessagesReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) messages received because of a packet having an unreachable address in its destination.
Public propertyDestinationUnreachableMessagesSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) messages sent because of a packet having an unreachable address in its destination.
Public propertyEchoRepliesReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages received.
Public propertyEchoRepliesSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Reply messages sent.
Public propertyEchoRequestsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages received.
Public propertyEchoRequestsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Echo Request messages sent.
Public propertyErrorsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages received.
Public propertyErrorsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) error messages sent.
Public propertyMembershipQueriesReceivedGets the number of Internet Group management Protocol (IGMP) Group Membership Query messages received.
Public propertyMembershipQueriesSentGets the number of Internet Group management Protocol (IGMP) Group Membership Query messages sent.
Public propertyMembershipReductionsReceivedGets the number of Internet Group Management Protocol (IGMP) Group Membership Reduction messages received.
Public propertyMembershipReductionsSentGets the number of Internet Group Management Protocol (IGMP) Group Membership Reduction messages sent.
Public propertyMembershipReportsReceivedGets the number of Internet Group Management Protocol (IGMP) Group Membership Report messages received.
Public propertyMembershipReportsSentGets the number of Internet Group Management Protocol (IGMP) Group Membership Report messages sent.
Public propertyMessagesReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) messages received.
Public propertyMessagesSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) messages sent.
Public propertyNeighborAdvertisementsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Advertisement messages received.
Public propertyNeighborAdvertisementsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Advertisement messages sent.
Public propertyNeighborSolicitsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Solicitation messages received.
Public propertyNeighborSolicitsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Neighbor Solicitation messages sent.
Public propertyPacketTooBigMessagesReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Packet Too Big messages received.
Public propertyPacketTooBigMessagesSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Packet Too Big messages sent.
Public propertyParameterProblemsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages received.
Public propertyParameterProblemsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Parameter Problem messages sent.
Public propertyRedirectsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages received.
Public propertyRedirectsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Redirect messages sent.
Public propertyRouterAdvertisementsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Advertisement messages received.
Public propertyRouterAdvertisementsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Advertisement messages sent.
Public propertyRouterSolicitsReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Solicitation messages received.
Public propertyRouterSolicitsSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Solicitation messages sent.
Public propertyTimeExceededMessagesReceivedGets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages received.
Public propertyTimeExceededMessagesSentGets the number of Internet Control Message Protocol version 6 (ICMPv6) Time Exceeded messages sent.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

The properties in this class correlate to the Management Information Base objects for ICMPv6 defined in IETF RFC 2466. ICMPv6 is defined in RFC 2463.

The following example displays the current ICMPv6 statistics.

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft