FtpClient.SocketKeepAlive Property

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Gets or sets a value indicating if SocketOption.KeepAlive should be set on the underlying stream's socket. If the connection is alive, the option is adjusted in real-time. The value is stored and the KeepAlive option is set accordingly upon any new connections. The value set here is also applied to all future data streams. It has no affect on cloned control connections or data connections already in progress. The default value is false.

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public bool SocketKeepAlive { get; set; }
Visual Basic
Public Property SocketKeepAlive As Boolean
	Get
	Set
Visual C++
public:
virtual property bool SocketKeepAlive {
	bool get () sealed;
	void set (bool value) sealed;
}

Property Value

Type: Boolean

Implements

IFtpClient..::..SocketKeepAlive

See Also