AggregateCatalog 构造函数

定义

初始化 AggregateCatalog 类的新实例。

重载

AggregateCatalog()

初始化 AggregateCatalog 类的新实例。

AggregateCatalog(IEnumerable<ComposablePartCatalog>)

使用指定的目录初始化 AggregateCatalog 类的新实例。

AggregateCatalog(ComposablePartCatalog[])

使用指定的目录初始化 AggregateCatalog 类的新实例。

AggregateCatalog()

Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs

初始化 AggregateCatalog 类的新实例。

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

适用于

AggregateCatalog(IEnumerable<ComposablePartCatalog>)

Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs

使用指定的目录初始化 AggregateCatalog 类的新实例。

public:
 AggregateCatalog(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^> ^ catalogs);
public AggregateCatalog (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartCatalog> catalogs);
public AggregateCatalog (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ComposablePartCatalog>? catalogs);
new System.ComponentModel.Composition.Hosting.AggregateCatalog : seq<System.ComponentModel.Composition.Primitives.ComposablePartCatalog> -> System.ComponentModel.Composition.Hosting.AggregateCatalog
Public Sub New (catalogs As IEnumerable(Of ComposablePartCatalog))

参数

catalogs
IEnumerable<ComposablePartCatalog>

要添加到 ComposablePartCatalog 中的 AggregateCatalog 对象的集合,或为 null 以创建一个空的 AggregateCatalog

例外

catalogs 包含为 null 的元素。

适用于

AggregateCatalog(ComposablePartCatalog[])

Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs
Source:
AggregateCatalog.cs

使用指定的目录初始化 AggregateCatalog 类的新实例。

public:
 AggregateCatalog(... cli::array <System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^> ^ catalogs);
public AggregateCatalog (params System.ComponentModel.Composition.Primitives.ComposablePartCatalog[] catalogs);
public AggregateCatalog (params System.ComponentModel.Composition.Primitives.ComposablePartCatalog[]? catalogs);
new System.ComponentModel.Composition.Hosting.AggregateCatalog : System.ComponentModel.Composition.Primitives.ComposablePartCatalog[] -> System.ComponentModel.Composition.Hosting.AggregateCatalog
Public Sub New (ParamArray catalogs As ComposablePartCatalog())

参数

catalogs
ComposablePartCatalog[]

要添加到 ComposablePartCatalog 中的 AggregateCatalog 对象的数组。

例外

catalogsnull

catalogs 包含为 null 的元素。

适用于