Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IPv4InterfaceStatistics Class
Collapse the table of content
Expand the table of content

IPv4InterfaceStatistics Class

Provides statistical data for a network interface on the local computer.

System.Object
  System.Net.NetworkInformation.IPv4InterfaceStatistics

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

public abstract class IPv4InterfaceStatistics

The IPv4InterfaceStatistics type exposes the following members.

  NameDescription
Protected methodIPv4InterfaceStatisticsInitializes a new instance of the IPv4InterfaceStatistics 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 GetIPv4Statistics method to return network traffic information for an interface.

.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

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:
© 2015 Microsoft