Share via


DatabaseAdapterBase.AutoClose Property

Gets or sets a Boolean value

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Property AutoClose As Boolean
    Get
    Set
'Usage
Dim instance As DatabaseAdapterBase
Dim value As Boolean

value = instance.AutoClose

instance.AutoClose = value
public bool AutoClose { get; set; }
public:
virtual property bool AutoClose {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract AutoClose : bool with get, set
override AutoClose : bool with get, set
final function get AutoClose () : boolean
final function set AutoClose (value : boolean)

Property Value

Type: System.Boolean
T:System.Boolean.
Returns True if AutoClose is on. Otherwise, False.