Lire en anglais Modifier

Partager via


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

Initializes a new instance of the CompositionBatch class.

public CompositionBatch ();

Applies to

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

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

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);

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

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)