IPGlobalProperties.GetTcpIPv4Statistics Method ()


Provides Transmission Control Protocol/Internet Protocol version 4 (TCP/IPv4) statistical data for the local computer.

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

abstract GetTcpIPv4Statistics : unit -> TcpStatistics

Return Value

Type: System.Net.NetworkInformation.TcpStatistics

A TcpStatistics object that provides TCP/IPv4 traffic statistics for the local computer.

Exception Condition

The call to the Win32 function GetTcpStatistics failed.

TCP is a transport layer protocol that is responsible for reliably sending and receiving data packets. It is defined in IETF RFC 793.

For details on the TCP traffic statistics available to applications, see the TcpStatistics class documentation. Note that the object returned by this method reflects the statistics as of the time the TcpStatistics object is created. This information is not updated dynamically.

The following example displays the TCP/IP statistics for the local computer.

No code example is currently available or this language may not be supported.


for reading network information. Associated enumeration: Read.

.NET Framework
Available since 2.0
Return to top