IPGlobalStatistics.OutputPacketRequests Property
.NET Framework 4.5
Gets the number of outbound Internet Protocol (IP) packets.
Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
The following code example displays statistics for outbound IP packets.
Public Shared Sub ShowOutboundIPStatistics() Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties() Dim ipstat As IPGlobalStatistics = 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) End Sub 'ShowOutboundIPStatistics
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.