Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IPGlobalStatistics::OutputPacketRequests Property

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

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

public:
virtual property long long OutputPacketRequests {
	long long get () abstract;
}

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.

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 );
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft