IPGlobalStatistics.OutputPacketsWithNoRoute Property

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

Gets the number of Internet Protocol (IP) packets for which the local computer could not determine a route to the destination address.

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

public abstract long OutputPacketsWithNoRoute { get; }
/** @property */
public abstract long get_OutputPacketsWithNoRoute ()

public abstract function get OutputPacketsWithNoRoute () : long

Property Value

An Int64 value that specifies the number of packets that could not be sent because a route could not be found.

IP packets that fall into this category are discarded.

The following code example displays statistics for outbound IP packets.

       
public static void ShowOutboundIPStatistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
    Console.WriteLine("  Outbound Packet Data:");
    Console.WriteLine("      Requested ........................... : {0}", 
        ipstat.OutputPacketRequests);
    Console.WriteLine("      Discarded ........................... : {0}", 
        ipstat.OutputPacketsDiscarded);
    Console.WriteLine("      No Routing Discards ................. : {0}", 
        ipstat.OutputPacketsWithNoRoute);
    Console.WriteLine("      Routing Entry Discards .............. : {0}", 
        ipstat.OutputPacketRoutingDiscards);   
}

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

Community Additions

ADD
Show: