CompositionBatch 构造函数

定义

初始化 CompositionBatch 类的新实例。

重载

CompositionBatch()

初始化 CompositionBatch 类的新实例。

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

使用要添加和移除的指定部件初始化 CompositionBatch 类的新实例。

CompositionBatch()

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

初始化 CompositionBatch 类的新实例。

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

适用于

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

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

使用要添加和移除的指定部件初始化 CompositionBatch 类的新实例。

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

参数

partsToAdd
IEnumerable<ComposablePart>

要添加的 ComposablePart 对象的集合。

partsToRemove
IEnumerable<ComposablePart>

要移除的 ComposablePart 对象的集合。

例外

partsToAddnull

partsToRemovenull

适用于