OutputPacketRequests Property

IPGlobalStatistics.OutputPacketRequests Property

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

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

public abstract long OutputPacketRequests { get; }

Property Value

Type: System.Int64
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);   
}
void ShowOutboundIPStatistics()
{
    IPGlobalProperties* properties = IPGlobalProperties::GetIPGlobalProperties();
    IPGlobalStatistics* ipstat = properties->GetIPv4GlobalStatistics();
    Console::WriteLine(S"  Outbound Packet Data:");
    Console::WriteLine(S"      Requested ........................... : {0}", __box(ipstat->OutputPacketRequests));
    Console::WriteLine(S"      Discarded ........................... : {0}", __box(ipstat->OutputPacketsDiscarded));
    Console::WriteLine(S"      No Routing Discards ................. : {0}", __box(ipstat->OutputPacketsWithNoRoute));
    Console::WriteLine(S"      Routing Entry Discards .............. : {0}", __box(ipstat->OutputPacketRoutingDiscards));   
}

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft