DbTransaction.Dispose Method

 

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

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodDispose()

Releases the unmanaged resources used by the DbTransaction.

System_CAPS_protmethodDispose(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.

Return to top
Show: