SinglePhaseEnlistment Class

 

Provides a set of callbacks that facilitate communication between a participant enlisted for Single Phase Commit and the transaction manager when the SinglePhaseCommit notification is received.

Namespace:   System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)

System.Object
  System.Transactions.Enlistment
    System.Transactions.SinglePhaseEnlistment

public class SinglePhaseEnlistment : Enlistment

NameDescription
System_CAPS_pubmethodAborted()

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back.

System_CAPS_pubmethodAborted(Exception)

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back, and provides an explanation.

System_CAPS_pubmethodCommitted()

Represents a callback that is used to indicate to the transaction manager that the SinglePhaseCommit was successful.

System_CAPS_pubmethodDone()

Indicates that the transaction participant has completed its work.(Inherited from Enlistment.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInDoubt()

Represents a callback that is used to indicate to the transaction manager that the status of the transaction is in doubt.

System_CAPS_pubmethodInDoubt(Exception)

Represents a callback that is used to indicate to the transaction manager that the status of the transaction is in doubt, and provides an explanation.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

When a resource manager's implementation of SinglePhaseCommit is called, and an instance of this type is passsed in, the participant then notifies the transaction manager via the Committed method or the Aborted method to indicate whether the transaction should be committed or rolled back.

.NET Framework
Available since 2.0

This type is thread safe.

IEnlistmentNotification
System.Transactions Namespace
Enlisting Resources As Participants In A Transaction
Committing A Transaction In Single-Phase and Multi-Phase

Return to top
Show: