Partager via


IComponentModel Interface

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

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 Gets the default catalog.
Public property DefaultCompositionService Gets the composition service of the Visual Studio default composition container that allows satisfying imports of objects that are not a part of the container.
Public property DefaultExportProvider Gets the export provider of the default composition container of Visual Studio.

Top

Methods

  Name Description
Public method GetCatalog
Public method GetExtensions<T> Gets an enumeration of extensions from the default composition container, that is, objects (of which there can multiple instances) that exist in a given composition container. This is the same as calling GetExportedValues``1 directly.
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. This is the same as calling GetExportedValue``1 directly.

Top

See Also

Reference

Microsoft.VisualStudio.ComponentModelHost Namespace