共用方式為


AutoDisconnectMode 屬性

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

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Property AutoDisconnectMode As AutoDisconnectMode
    Get
    Set
'用途
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)

屬性值

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