CompositionBatch Class

Definition

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

public ref class CompositionBatch
public class CompositionBatch
type CompositionBatch = class
Public Class CompositionBatch
Inheritance
CompositionBatch

Constructors

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.

Properties

PartsToAdd

Gets the collection of ComposablePart objects to be added.

PartsToRemove

Gets the collection of ComposablePart objects to be removed.

Methods

AddExport(Export)

Adds the specified export to the CompositionBatch object.

AddPart(ComposablePart)

Adds the specified part to the CompositionBatch object.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(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(ComposablePart)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

AddExportedValue<T>(CompositionBatch, T)

Creates a part from the specified value and adds it to the specified batch.

AddExportedValue<T>(CompositionBatch, String, T)

Creates a part from the specified value and adds it to the specified batch with the specified contract name.

AddPart(CompositionBatch, Object)

Creates a composable part from the specified attributed object, and adds it to the specified composition batch.

Applies to