ExportDescriptor.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立具有指定之啟動項及中繼資料的匯出描述元。
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>
與匯出建立關聯的中繼資料。
傳回
建立描述元。