Export (0) Print
Expand All

IPGlobalStatistics.OutputPacketRequests Property

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

Gets the number of outbound Internet Protocol (IP) packets.

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

public abstract long OutputPacketRequests { get; }
/** @property */
public abstract long get_OutputPacketRequests ()

public abstract function get OutputPacketRequests () : long

Property Value

An Int64 value that specifies the total number of outgoing packets.

The number of outbound packets does not include the number of packets that have been forwarded.

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:
© 2014 Microsoft