Share via


Database.Dispose Method (Boolean)

Releases the unmanaged resources used by a Database instance and optionally releases the managed resources.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean 

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit  
override Dispose : 
        disposing:bool -> unit
protected function Dispose(
    disposing : boolean
)

Parameters

  • disposing
    Type: System.Boolean
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

The Dispose method invokes the Dispose method with the disposing parameter set to true.

See Also

Reference

Database Class

Dispose Overload

WebMatrix.Data Namespace