CompositionBatch Class

CompositionBatch Class

 

Represents a set of ComposablePart objects which will be added or removed from the container in a single transactional composition.

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

System.Object
  System.ComponentModel.Composition.Hosting.CompositionBatch

public class CompositionBatch

NameDescription
System_CAPS_pubmethodCompositionBatch()

Initializes a new instance of the CompositionBatch class.

System_CAPS_pubmethodCompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>)

Initializes a new instance of the CompositionBatch class with the specified parts for addition and removal.

NameDescription
System_CAPS_pubpropertyPartsToAdd

Gets the collection of ComposablePart objects to be added.

System_CAPS_pubpropertyPartsToRemove

Gets the collection of ComposablePart objects to be removed.

NameDescription
System_CAPS_pubmethodAddExport(Export)

Adds the specified export to the CompositionBatch object.

System_CAPS_pubmethodAddPart(ComposablePart)

Adds the specified part to the CompositionBatch object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemovePart(ComposablePart)

Puts the specified part on the list of parts to remove.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAddExportedValue<T>(T)

Overloaded. Creates a part from the specified value and adds it to the specified batch.(Defined by AttributedModelServices.)

System_CAPS_pubmethodAddExportedValue<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.)

System_CAPS_pubmethodAddPart(Object)

Creates a composable part from the specified attributed object, and adds it to the specified composition batch.(Defined by AttributedModelServices.)

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft