IPGlobalStatistics::OutputPacketsDiscarded Property
.NET Framework (current version)
Gets the number of transmitted Internet Protocol (IP) packets that have been discarded.
Assembly: System (in System.dll)
The data returned by this property does not include packets discarded because of errors that made the packets undeliverable. Packets included in this data are typically discarded due to network issues, such as insufficient buffer space.
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
Available since 2.0
Available since 2.0
Show: