ConnectionManager.AutoDisconnectMode Property

Gets or sets the automatic disconnection mode of the referenced connection to the instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Property AutoDisconnectMode As AutoDisconnectMode
    Get
    Set
'Usage
Dim instance As ConnectionManager
Dim value As AutoDisconnectMode

value = instance.AutoDisconnectMode

instance.AutoDisconnectMode = value
public AutoDisconnectMode AutoDisconnectMode { get; set; }
public:
property AutoDisconnectMode AutoDisconnectMode {
    AutoDisconnectMode get ();
    void set (AutoDisconnectMode value);
}
member AutoDisconnectMode : AutoDisconnectMode with get, set
function get AutoDisconnectMode () : AutoDisconnectMode
function set AutoDisconnectMode (value : AutoDisconnectMode)

Property Value

Type: Microsoft.SqlServer.Management.Common.AutoDisconnectMode
A AutoDisconnectMode object value that specifies the automatic disconnection mode of the referenced connection.