共用方式為


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

將用來提供匯出的目錄。

傳回

新的組合服務。

適用於