CompositionBatch Constructor (IEnumerable<ComposablePart>, IEnumerable<ComposablePart>)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Sub New ( _
partsToAdd As IEnumerable(Of ComposablePart), _
partsToRemove As IEnumerable(Of ComposablePart) _
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentException | partsToAdd is nulla null reference (Nothing in Visual Basic). -or- partsToRemove is nulla null reference (Nothing in Visual Basic). |
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.