System.Net.Sockets.TcpClient.Active Property

Gets or set a value that indicates whether a connection has been made.

Syntax

protected bool Active { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Classes deriving from System.Net.Sockets.TcpClient can use this property to determine if a connection attempt has succeeded. It does not monitor the ongoing connection state of System.Net.Sockets.TcpClient. If the remote host closes the connection, TcpClient.Active will not be updated. If you are deriving from System.Net.Sockets.TcpClient and require closer attention to the connection state, use the Socket.Connected property of the System.Net.Sockets.Socket returned by the TcpClient.Client method.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0