Bewerken

Share via


SinglePhaseEnlistment Class

Definition

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

public ref class SinglePhaseEnlistment : System::Transactions::Enlistment
public class SinglePhaseEnlistment : System.Transactions.Enlistment
type SinglePhaseEnlistment = class
    inherit Enlistment
Public Class SinglePhaseEnlistment
Inherits Enlistment
Inheritance
SinglePhaseEnlistment

Remarks

When a resource manager's implementation of SinglePhaseCommit is called, and an instance of this type is passed 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.

Methods

Aborted()

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

Aborted(Exception)

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

Committed()

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

Done()

Indicates that the transaction participant has completed its work.

(Inherited from Enlistment)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InDoubt()

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

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

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Thread Safety

This type is thread safe.

See also