MaximumConnections Property

TcpStatistics.MaximumConnections Property

Gets the maximum number of supported Transmission Control Protocol (TCP) connections.

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

public abstract long MaximumConnections { get; }
/** @property */
public abstract long get_MaximumConnections ()

public abstract function get MaximumConnections () : long

Not applicable.

Property Value

An Int64 value that specifies the total number of TCP connections that can be supported.

If the maximum number of connections is dynamic, this property returns -1.

The following code example displays time-out and maximum connection information.

public static void ShowTcpTimeouts()
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();
    Console.WriteLine("  Minimum Transmission Timeout............. : {0}", 
    Console.WriteLine("  Maximum Transmission Timeout............. : {0}", 
    Console.WriteLine("  Maximum connections ............. : {0}", 

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft