Class NetFxAdapters
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
public static class NetFxAdapters
- Inheritance
-
NetFxAdapters
- Inherited Members
Methods
AsExportProvider(ExportProvider)
Creates an instance of a ExportProvider for purposes of compatibility with the version of MEF found in the .NET Framework.
public static ExportProvider AsExportProvider(this ExportProvider exportProvider)
Parameters
exportProvider
ExportProviderThe ExportProvider to wrap.
Returns
- ExportProvider
A MEF "v1" shim.
WithCompositionService(ComposableCatalog)
Creates a catalog that exports an instance of ICompositionService.
public static ComposableCatalog WithCompositionService(this ComposableCatalog catalog)
Parameters
catalog
ComposableCatalogThe catalog to add the export to.
Returns
- ComposableCatalog
A catalog that includes ICompositionService.
WithDesktopSupport(ComposableCatalog)
Adds parts that allow MEF to work on .NET Framework platforms.
[Obsolete("Desktop support is automatically included when run on the .NET Framework.")]
public static ComposableCatalog WithDesktopSupport(this ComposableCatalog catalog)
Parameters
catalog
ComposableCatalogThe catalog to add desktop support to.
Returns
- ComposableCatalog
The catalog that includes desktop support.