DbConnection.Dispose Method

Definition

Overloads

Dispose()

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

Dispose(Boolean)

Releases the unmanaged resources used by the DbConnection and optionally releases the managed resources.

Dispose()

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

C#
public void Dispose();

Implements

Applies to

.NET Core 1.1 i druge verzije
Proizvod Verzije
.NET Core 1.0, Core 1.1
UWP 10.0

Dispose(Boolean)

Releases the unmanaged resources used by the DbConnection and optionally releases the managed resources.

C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

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

Applies to

.NET Core 1.1 i druge verzije
Proizvod Verzije
.NET Core 1.0, Core 1.1
UWP 10.0