Edit

Share via


DbDataSource.Dispose Method

Definition

Overloads

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Dispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the DbDataSource class.

Dispose()

Source:
DbDataSource.cs
Source:
DbDataSource.cs
Source:
DbDataSource.cs

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

If the current instance of DbDataSource represents a connection pool, disposing it should close all idle connections, and arrange for busy connections to be closed as soon as possible.

Applies to

Dispose(Boolean)

Source:
DbDataSource.cs
Source:
DbDataSource.cs
Source:
DbDataSource.cs

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the DbDataSource class.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API.

Applies to