CatalogExtensions.CreateCompositionService(ComposablePartCatalog) 方法

定义

用作为导出源的指定目录创建新复合服务。Creates a new composition service by using the specified catalog as a source for exports.

public:
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Hosting::CompositionService ^ CreateCompositionService(System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ composablePartCatalog);
public static System.ComponentModel.Composition.Hosting.CompositionService CreateCompositionService (this System.ComponentModel.Composition.Primitives.ComposablePartCatalog composablePartCatalog);
static member CreateCompositionService : System.ComponentModel.Composition.Primitives.ComposablePartCatalog -> System.ComponentModel.Composition.Hosting.CompositionService

参数

composablePartCatalog
ComposablePartCatalog

将提供导出的目录。The catalog that will provide exports.

返回

新的组合服务。A new composition service.

适用于