MefHosting.CreateExportProviderAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateExportProviderAsync() |
Creates a new MEF container, initialized with all the assemblies specified in the constructor. |
CreateExportProviderAsync(Type[]) |
Creates a one-off ExportProvider based on an explicit list of MEF parts. |
CreateExportProviderAsync()
Creates a new MEF container, initialized with all the assemblies specified in the constructor.
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Composition.ExportProvider> CreateExportProviderAsync ();
member this.CreateExportProviderAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Composition.ExportProvider>
Public Function CreateExportProviderAsync () As Task(Of ExportProvider)
Returns
A task whose result is the ExportProvider.
Applies to
CreateExportProviderAsync(Type[])
Creates a one-off ExportProvider based on an explicit list of MEF parts.
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Composition.ExportProvider> CreateExportProviderAsync (params Type[] partTypes);
static member CreateExportProviderAsync : Type[] -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Composition.ExportProvider>
Public Shared Function CreateExportProviderAsync (ParamArray partTypes As Type()) As Task(Of ExportProvider)
Parameters
- partTypes
- Type[]
The types that define the MEF parts to include in the backing catalog.
Returns
An ExportProvider.