ExportDescriptor.Create Method

Definition

Creates an export descriptor that has the specified activator and metadata.

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

Parameters

activator
CompositeActivator

The activator used to retrieve instances of the export.

metadata
IDictionary<String,Object>

The metadata associated with the export.

Returns

The created descriptor.

Applies to