Share via


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.

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

Syntax

'Declaration
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.

Hinweise

The AutoDisconnectMode enumeration is served by the ConnectionManager object.

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Close and Disconnect an SMO Object in Visual Basic .NET

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Common Namespace