DbTransaction.Dispose DbTransaction.Dispose DbTransaction.Dispose DbTransaction.Dispose Method

Definition

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

Overloads

Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources used by the DbTransaction.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Remarks

Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.

Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources used by the DbTransaction.

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

Remarks

Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

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 Boolean Boolean Boolean

If true, this method releases all resources held by any managed objects that this DbTransaction references.

Remarks

Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.

Applies to