Export (0) Print
Expand All

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

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

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

public CompositionBatch(
	IEnumerable<ComposablePart> partsToAdd,
	IEnumerable<ComposablePart> partsToRemove
)

Parameters

partsToAdd
Type: System.Collections.Generic.IEnumerable<ComposablePart>
A collection of ComposablePart objects to add.
partsToRemove
Type: System.Collections.Generic.IEnumerable<ComposablePart>
A collection of ComposablePart objects to remove.

ExceptionCondition
ArgumentException

partsToAdd is null.

-or-

partsToRemove is null.

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.

Community Additions

ADD
Show:
© 2014 Microsoft