DependentTransaction Class
Describes a clone of a transaction providing guarantee that the transaction cannot be committed until the application comes to rest regarding work on the transaction. This class cannot be inherited.
Assembly: System.Transactions (in System.Transactions.dll)
| Name | Description | |
|---|---|---|
![]() | IsolationLevel | Gets the isolation level of the transaction.(Inherited from Transaction.) |
![]() | PromoterType | Uniquely identifies the format of the byte[] returned by the Promote method when the transaction is promoted.(Inherited from Transaction.) |
![]() | TransactionInformation | Retrieves additional information about a transaction.(Inherited from Transaction.) |
| Name | Description | |
|---|---|---|
![]() | Clone() | Creates a clone of the transaction.(Inherited from Transaction.) |
![]() | Complete() | Attempts to complete the dependent transaction. |
![]() | DependentClone(DependentCloneOption) | Creates a dependent clone of the transaction.(Inherited from Transaction.) |
![]() | Dispose() | Releases the resources that are held by the object.(Inherited from Transaction.) |
![]() | EnlistDurable(Guid, IEnlistmentNotification^, EnlistmentOptions) | Enlists a durable resource manager that supports two phase commit to participate in a transaction.(Inherited from Transaction.) |
![]() | EnlistDurable(Guid, ISinglePhaseNotification^, EnlistmentOptions) | Enlists a durable resource manager that supports single phase commit optimization to participate in a transaction.(Inherited from Transaction.) |
![]() | EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification^) | Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE). (Inherited from Transaction.) |
![]() | EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification^, Guid) | Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE).(Inherited from Transaction.) |
![]() | EnlistVolatile(IEnlistmentNotification^, EnlistmentOptions) | Enlists a volatile resource manager that supports two phase commit to participate in a transaction.(Inherited from Transaction.) |
![]() | EnlistVolatile(ISinglePhaseNotification^, EnlistmentOptions) | Enlists a volatile resource manager that supports single phase commit optimization to participate in a transaction.(Inherited from Transaction.) |
![]() | Equals(Object^) | Determines whether this transaction and the specified object are equal.(Inherited from Transaction.) |
![]() | GetHashCode() | Returns the hash code for this instance.(Inherited from Transaction.) |
![]() | GetPromotedToken() | Gets the byte[] returned by the Promote method when the transaction is promoted.(Inherited from Transaction.) |
![]() | GetType() | |
![]() | PromoteAndEnlistDurable(Guid, IPromotableSinglePhaseNotification^, ISinglePhaseNotification^, EnlistmentOptions) | [Supported in the .NET Framework 4.5.2 and later versions] Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.(Inherited from Transaction.) |
![]() | Rollback() | Rolls back (aborts) the transaction.(Inherited from Transaction.) |
![]() | Rollback(Exception^) | Rolls back (aborts) the transaction.(Inherited from Transaction.) |
![]() | SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification^, Guid) | Sets the distributed transaction identifier generated by the non-MSDTC promoter.(Inherited from Transaction.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | TransactionCompleted | Indicates that the transaction is completed.(Inherited from Transaction.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | Gets a SerializationInfo with the data required to serialize this transaction. (Inherited from Transaction.) |
The DependentTransaction is a clone of a Transaction object created using the DependentClone method. Its sole purpose is to allow the application to come to rest and guarantee that the transaction cannot commit while work is still being performed on the transaction (for example, on a worker thread).
When the work done within the cloned transaction is finally complete and ready to be committed, it can inform the creator of the transaction using the Complete method. Thus you can preserve the consistency and correctness of data.
The DependentCloneOption enumeration is used to determine the behavior on commit. This behavior control allows an application to come to rest, as well as provides concurrency support. For more information on how this enumeration is used, see Managing Concurrency with DependentTransaction.
Available since 2.0
This type is thread safe.
System.Transactions Namespace
Managing Concurrency with DependentTransaction




