SinglePhaseEnlistment Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
In |
Represents a callback that is used to indicate to the transaction manager that the status of the transaction is in doubt. |
In |
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. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
This type is thread safe.
.NET feedback
.NET is an open source project. Select a link to provide feedback: