Share via


IComponentModel Interface

Provides access to the default MEF composition container and the Visual Studio catalogs .

Namespace:  Microsoft.VisualStudio.ComponentModelHost
Assembly:  Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)

Syntax

'Declaration
Public Interface IComponentModel
public interface IComponentModel
public interface class IComponentModel
type IComponentModel =  interface end
public interface IComponentModel

The IComponentModel type exposes the following members.

Properties

  Name Description
Public property DefaultCatalog
Public property DefaultCompositionService Gets the composition service of the default composition container that allows satisfying imports of an object that are not part of the container.
Public property DefaultExportProvider Gets the export provider of the default Visual Studio composition container.

Top

Methods

  Name Description
Public method GetCatalog Provides access to a MEF catalog by name.
Public method GetExtensions<T> Gets an enumeration of extensions from the default composition container
Public method GetService<T> Gets a "service" from the default composition container, i.e. an object of which there can only a single instance exist in a given composition container.

Top

See Also

Reference

Microsoft.VisualStudio.ComponentModelHost Namespace