Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IcmpV6Statistics.RouterAdvertisementsSent Property

Note: This property is new in the .NET Framework version 2.0.

Gets the number of Internet Control Message Protocol version 6 (ICMPv6) Router Advertisement messages sent.

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

public abstract long RouterAdvertisementsSent { get; }
/** @property */
public abstract long get_RouterAdvertisementsSent ()

public abstract function get RouterAdvertisementsSent () : long

Property Value

An Int64 value that specifies the total number of Router Advertisement messages sent.

Before a host computer can send IP datagrams beyond its directly attached subnet, it must discover the address of at least one router on that subnet. This discovery can be accomplished using ICMP messages called Router Advertisements and Router Solicitations. An Advertisement message is sent by a router periodically to announce its presence and the addresses of its interfaces. When a computer connects to a network, rather than waiting to receive Router Advertisements, it can send Router Solicitations to request that routers send their advertisements immediately.

The following example displays the value of this property.

public static void ShowIcmpV6RouterData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();

    Console.WriteLine ("  Advertisements ....................... Sent: {0,-10}   Received: {1,-10}", 
        statistics.RouterAdvertisementsSent, statistics.RouterAdvertisementsReceived);
    Console.WriteLine ("  Solicits ............................. Sent: {0,-10}   Received: {1,-10}", 
        statistics.RouterSolicitsSent, statistics.RouterSolicitsReceived);
}


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft