TcpStatistics.ErrorsReceived Property
.NET Framework 4.5
Gets the number of Transmission Control Protocol (TCP) errors received.
Assembly: System (in System.dll)
The following code example displays connection information.
public static void ShowTcpConnectionStatistics() { IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(); TcpStatistics tcpstat = properties.GetTcpIPv4Statistics(); Console.WriteLine(" Connection Data:"); Console.WriteLine(" Current ............................ : {0}", tcpstat.CurrentConnections); Console.WriteLine(" Cumulative .......................... : {0}", tcpstat.CumulativeConnections); Console.WriteLine(" Initiated ........................... : {0}", tcpstat.ConnectionsInitiated); Console.WriteLine(" Accepted ............................ : {0}", tcpstat.ConnectionsAccepted); Console.WriteLine(" Failed Attempts ..................... : {0}", tcpstat.FailedConnectionAttempts); Console.WriteLine(" Reset ............................... : {0}", tcpstat.ResetConnections); Console.WriteLine(" Errors .............................. : {0}", tcpstat.ErrorsReceived); Console.WriteLine(); }
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.