Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AtomicComposition Class

Represents a single composition operation for transactional composition.

System.Object
  System.ComponentModel.Composition.Hosting.AtomicComposition

Namespace:  System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public class AtomicComposition : IDisposable

The AtomicComposition type exposes the following members.

  NameDescription
Public methodAtomicComposition()Initializes a new instance of the AtomicComposition class.
Public methodAtomicComposition(AtomicComposition)Initializes a new instance of the AtomicComposition class with the specified parent AtomicComposition.
Top

  NameDescription
Public methodAddCompleteActionAdds an action to be executed when the overall composition operation completes successfully.
Public methodAddRevertActionAdds an action to be executed if the overall composition operation fails.
Public methodCompleteMarks this composition operation as complete.
Public methodDispose()Releases all resources used by the current instance of the AtomicComposition class, and mark this composition operation as failed.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the AtomicComposition and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetValueSaves a key-value pair in the transaction to track tentative state.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetValue<T>(Object, T)Gets a value saved by the SetValue method.
Public methodTryGetValue<T>(Object, Boolean, T)Gets a value saved by the SetValue method, with the option of not searching parent transactions.
Top

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft