CatalogExtensions.CreateCompositionService(ComposablePartCatalog) 方法

定义

用作为导出源的指定目录创建新复合服务。

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
<Extension()>
Public Function CreateCompositionService (composablePartCatalog As ComposablePartCatalog) As CompositionService

参数

composablePartCatalog
ComposablePartCatalog

将提供导出的目录。

返回

新的组合服务。

适用于