This documentation is archived and is not being maintained.
CompositionBatch Class
Visual Studio 2010
Represents a set of ComposablePart objects which will be added or removed from the container in a single transactional composition.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The CompositionBatch type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | CompositionBatch() | Initializes a new instance of the CompositionBatch class. |
![]() ![]() | CompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>) | Initializes a new instance of the CompositionBatch class with the specified parts for addition and removal. |
| Name | Description | |
|---|---|---|
![]() ![]() | PartsToAdd | Gets the collection of ComposablePart objects to be added. |
![]() ![]() | PartsToRemove | Gets the collection of ComposablePart objects to be removed. |
| Name | Description | |
|---|---|---|
![]() ![]() | AddExport | Adds the specified export to the CompositionBatch object. |
![]() ![]() | AddPart | Adds the specified part to the CompositionBatch object. |
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | RemovePart | Puts the specified part on the list of parts to remove. |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | AddExportedValue<T>(T) | Overloaded. Creates a part from the specified value and adds it to the specified batch. (Defined by AttributedModelServices.) |
![]() ![]() | AddExportedValue<T>(String, T) | Overloaded. Creates a part from the specified value and adds it to the specified batch with the specified contract name. (Defined by AttributedModelServices.) |
![]() ![]() | AddPart | Creates a composable part from the specified attributed object, and adds it to the specified composition batch. (Defined by AttributedModelServices.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

