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)

protected virtual void Dispose(
	bool disposing


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

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

  • Medium trust for the immediate caller. This member can be used by partially trusted code.