Export (0) Print
Expand All

IPInterfaceStatistics Class

.NET Framework 4.5

Provides Internet Protocol (IP) statistical data for an network interface on the local computer.

System::Object
  System.Net.NetworkInformation::IPInterfaceStatistics

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

public ref class IPInterfaceStatistics abstract

The IPInterfaceStatistics type exposes the following members.

  NameDescription
Protected methodIPInterfaceStatisticsInitializes a new instance of the IPInterfaceStatistics class.
Top

  NameDescription
Public propertyBytesReceivedGets the number of bytes that were received on the interface.
Public propertyBytesSentGets the number of bytes that were sent on the interface.
Public propertyIncomingPacketsDiscardedGets the number of incoming packets that were discarded.
Public propertyIncomingPacketsWithErrorsGets the number of incoming packets with errors.
Public propertyIncomingUnknownProtocolPacketsGets the number of incoming packets with an unknown protocol that were received on the interface.
Public propertyNonUnicastPacketsReceivedGets the number of non-unicast packets that were received on the interface.
Public propertyNonUnicastPacketsSentGets the number of non-unicast packets that were sent on the interface.
Public propertyOutgoingPacketsDiscardedGets the number of outgoing packets that were discarded.
Public propertyOutgoingPacketsWithErrorsGets the number of outgoing packets with errors.
Public propertyOutputQueueLengthGets the length of the output queue.
Public propertyUnicastPacketsReceivedGets the number of unicast packets that were received on the interface.
Public propertyUnicastPacketsSentGets the number of unicast packets that were sent on the interface.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

This class is used by the GetIPStatistics method to return network traffic information for an interface.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft