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 的硬件和软件要求。

请参阅

参考

Microsoft.SqlServer.Management.Common Namespace