Επεξεργασία

Κοινή χρήση μέσω


DbTransaction.Dispose Method

Definition

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

Overloads

Dispose()

Releases the unmanaged resources used by the DbTransaction.

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()

Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs

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.

See also

Applies to

Dispose(Boolean)

Source:
DbTransaction.cs
Source:
DbTransaction.cs
Source:
DbTransaction.cs

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

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.

See also

Applies to