Поделиться через


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

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

Microsoft.SqlServer.Management.Common Namespace