CompositionBatch Constructors

Definition

Initializes a new instance of the CompositionBatch class.

Overloads

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.

CompositionBatch()

Source:
CompositionBatch.cs
Source:
CompositionBatch.cs
Source:
CompositionBatch.cs
Source:
CompositionBatch.cs

Initializes a new instance of the CompositionBatch class.

public:
 CompositionBatch();
public CompositionBatch ();
Public Sub New ()

Applies to

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

Source:
CompositionBatch.cs
Source:
CompositionBatch.cs
Source:
CompositionBatch.cs
Source:
CompositionBatch.cs

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

public:
 CompositionBatch(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ComposablePart ^> ^ partsToAdd, System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ComposablePart ^> ^ partsToRemove);
public CompositionBatch (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePart>? partsToAdd, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePart>? partsToRemove);
public CompositionBatch (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePart> partsToAdd, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePart> partsToRemove);
new System.ComponentModel.Composition.Hosting.CompositionBatch : seq<System.ComponentModel.Composition.Primitives.ComposablePart> * seq<System.ComponentModel.Composition.Primitives.ComposablePart> -> System.ComponentModel.Composition.Hosting.CompositionBatch
Public Sub New (partsToAdd As IEnumerable(Of ComposablePart), partsToRemove As IEnumerable(Of ComposablePart))

Parameters

partsToAdd
IEnumerable<ComposablePart>

A collection of ComposablePart objects to add.

partsToRemove
IEnumerable<ComposablePart>

A collection of ComposablePart objects to remove.

Exceptions

partsToAdd is null.

-or-

partsToRemove is null.

Applies to