This documentation is archived and is not being maintained.

IcmpV6Statistics.RouterSolicitsSent Property

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

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

public abstract long RouterSolicitsSent { get; }
/** @property */
public abstract long get_RouterSolicitsSent ()

public abstract function get RouterSolicitsSent () : long

Not applicable.

Property Value

An Int64 value that specifies the total number of Router Solicitation 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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0