The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DbTransaction::Dispose Method
.NET Framework (current version)
Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.
Show:

