AtomicComposition 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.
Represents a single composition operation for transactional composition.
public ref class AtomicComposition : IDisposable
public class AtomicComposition : IDisposable
type AtomicComposition = class
interface IDisposable
Public Class AtomicComposition
Implements IDisposable
- Inheritance
-
AtomicComposition
- Implements
Important
This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its Dispose method in a try
/catch
block. To dispose of it indirectly, use a language construct such as using
(in C#) or Using
(in Visual Basic). For more information, see the "Using an Object that Implements IDisposable" section in the IDisposable interface topic.
Atomic |
Initializes a new instance of the AtomicComposition class. |
Atomic |
Initializes a new instance of the AtomicComposition class with the specified parent AtomicComposition. |
Add |
Adds an action to be executed when the overall composition operation completes successfully. |
Add |
Adds an action to be executed if the overall composition operation fails. |
Complete() |
Marks this composition operation as complete. |
Dispose() |
Releases all resources used by the current instance of the AtomicComposition class, and mark this composition operation as failed. |
Dispose(Boolean) |
Releases the unmanaged resources used by the AtomicComposition and optionally releases the managed resources. |
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) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Set |
Saves a key-value pair in the transaction to track tentative state. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Try |
Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions. |
Try |
Gets a value saved by the SetValue(Object, Object) method. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: