AutoDisconnectMode Enumeration
The AutoDisconnectMode enumeration contains values that are used to specify the automatic disconnection options for a connection to an instance of Microsoft SQL Server.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
語法
'宣告
Public Enumeration AutoDisconnectMode
public enum AutoDisconnectMode
public enum class AutoDisconnectMode
public enum AutoDisconnectMode
public enum AutoDisconnectMode
Members
Member name | Description |
---|---|
DisconnectIfPooled | The connection is disconnected from the instance of Microsoft SQL Server if the connection is pooled. |
NoAutoDisconnect | The connection is not disconnected automatically. |
備註
The AutoDisconnectMode enumeration is served by the ConnectionManager object.
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
範例
How to: Close and Disconnect an SMO Object in Visual Basic .NET
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。