CompositionBatch CompositionBatch CompositionBatch 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
CompositionBatchCompositionBatchCompositionBatchCompositionBatch

Constructors

CompositionBatch() CompositionBatch() CompositionBatch() CompositionBatch()

Initializes a new instance of the CompositionBatch class.

CompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>) CompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>) CompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>) CompositionBatch(IEnumerable<ComposablePart>, IEnumerable<ComposablePart>)

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

Properties

PartsToAdd PartsToAdd PartsToAdd PartsToAdd

Gets the collection of ComposablePart objects to be added.

PartsToRemove PartsToRemove PartsToRemove PartsToRemove

Gets the collection of ComposablePart objects to be removed.

Methods

AddExport(Export) AddExport(Export) AddExport(Export) AddExport(Export)

Adds the specified export to the CompositionBatch object.

AddPart(ComposablePart) AddPart(ComposablePart) AddPart(ComposablePart) AddPart(ComposablePart)

Adds the specified part to the CompositionBatch object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemovePart(ComposablePart) RemovePart(ComposablePart) RemovePart(ComposablePart) RemovePart(ComposablePart)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

AddExportedValue<T>(CompositionBatch, T) AddExportedValue<T>(CompositionBatch, T) AddExportedValue<T>(CompositionBatch, T) AddExportedValue<T>(CompositionBatch, T)

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

AddExportedValue<T>(CompositionBatch, String, T) AddExportedValue<T>(CompositionBatch, String, T) AddExportedValue<T>(CompositionBatch, String, T) 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) AddPart(CompositionBatch, Object) AddPart(CompositionBatch, Object) AddPart(CompositionBatch, Object)

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

Applies to