ComposablePartCatalogChangeEventArgs 构造函数

定义

使用指定的更改初始化 ComposablePartCatalogChangeEventArgs 类的新实例。

public:
 ComposablePartCatalogChangeEventArgs(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^> ^ addedDefinitions, System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^> ^ removedDefinitions, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition);
public ComposablePartCatalogChangeEventArgs (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> addedDefinitions, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> removedDefinitions, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);
public ComposablePartCatalogChangeEventArgs (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> addedDefinitions, System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> removedDefinitions, System.ComponentModel.Composition.Hosting.AtomicComposition? atomicComposition);
new System.ComponentModel.Composition.Hosting.ComposablePartCatalogChangeEventArgs : seq<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> * seq<System.ComponentModel.Composition.Primitives.ComposablePartDefinition> * System.ComponentModel.Composition.Hosting.AtomicComposition -> System.ComponentModel.Composition.Hosting.ComposablePartCatalogChangeEventArgs
Public Sub New (addedDefinitions As IEnumerable(Of ComposablePartDefinition), removedDefinitions As IEnumerable(Of ComposablePartDefinition), atomicComposition As AtomicComposition)

参数

addedDefinitions
IEnumerable<ComposablePartDefinition>

已添加到目录中的部件定义。

removedDefinitions
IEnumerable<ComposablePartDefinition>

已从目录中移除的部件定义。

atomicComposition
AtomicComposition

要使用的组合事务,或为 null 以禁用事务性组合。

例外

addedDefinitionsremovedDefinitionsnull

适用于