共用方式為


ExportDescriptor.Create 方法

定義

建立具有指定之啟動項及中繼資料的匯出描述元。

public:
 static System::Composition::Hosting::Core::ExportDescriptor ^ Create(System::Composition::Hosting::Core::CompositeActivator ^ activator, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ metadata);
public static System.Composition.Hosting.Core.ExportDescriptor Create (System.Composition.Hosting.Core.CompositeActivator activator, System.Collections.Generic.IDictionary<string,object> metadata);
static member Create : System.Composition.Hosting.Core.CompositeActivator * System.Collections.Generic.IDictionary<string, obj> -> System.Composition.Hosting.Core.ExportDescriptor
Public Shared Function Create (activator As CompositeActivator, metadata As IDictionary(Of String, Object)) As ExportDescriptor

參數

activator
CompositeActivator

用來擷取匯出執行個體的啟動項。

metadata
IDictionary<String,Object>

與匯出建立關聯的中繼資料。

傳回

建立描述元。

適用於