ComposablePartCatalogChangeEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的更改初始化 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
以禁用事务性组合。
例外
addedDefinitions
或 removedDefinitions
为 null
。