IPInterfaceStatistics Class
.NET Framework 4.5
Provides Internet Protocol (IP) statistical data for an network interface on the local computer.
Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
The IPInterfaceStatistics type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IPInterfaceStatistics | Initializes a new instance of the IPInterfaceStatistics class. |
| Name | Description | |
|---|---|---|
![]() | BytesReceived | Gets the number of bytes that were received on the interface. |
![]() | BytesSent | Gets the number of bytes that were sent on the interface. |
![]() | IncomingPacketsDiscarded | Gets the number of incoming packets that were discarded. |
![]() | IncomingPacketsWithErrors | Gets the number of incoming packets with errors. |
![]() | IncomingUnknownProtocolPackets | Gets the number of incoming packets with an unknown protocol that were received on the interface. |
![]() | NonUnicastPacketsReceived | Gets the number of non-unicast packets that were received on the interface. |
![]() | NonUnicastPacketsSent | Gets the number of non-unicast packets that were sent on the interface. |
![]() | OutgoingPacketsDiscarded | Gets the number of outgoing packets that were discarded. |
![]() | OutgoingPacketsWithErrors | Gets the number of outgoing packets with errors. |
![]() | OutputQueueLength | Gets the length of the output queue. |
![]() | UnicastPacketsReceived | Gets the number of unicast packets that were received on the interface. |
![]() | UnicastPacketsSent | Gets the number of unicast packets that were sent on the interface. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class is used by the GetIPStatistics method to return network traffic information for an interface.
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.


