DbTransaction.Dispose Method (Boolean)
.NET Framework 4.6 and 4.5
Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.
Protected Overridable Sub Dispose ( _
disposing As Boolean _
- Type: System.Boolean
If true, this method releases all resources held by any managed objects that this DbTransaction references.
Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0