Share via


IComponentModel2 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 IComponentModel2 _
    Inherits IComponentModel
public interface IComponentModel2 : IComponentModel
public interface class IComponentModel2 : IComponentModel
type IComponentModel2 =  
    interface 
        interface IComponentModel 
    end
public interface IComponentModel2 extends IComponentModel

The IComponentModel2 type exposes the following members.

Properties

  Name Description
Public property DefaultCatalog Gets the default catalog. (Inherited from IComponentModel.)
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. (Inherited from IComponentModel.)
Public property DefaultExportProvider Gets the export provider of the default composition container of Visual Studio. (Inherited from IComponentModel.)
Public property DefaultScopedCatalog Gets the default scoped Visual Studio catalog.

Top

Methods

  Name Description
Public method GetCatalog (Inherited from IComponentModel.)
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 directly. (Inherited from IComponentModel.)
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 directly. (Inherited from IComponentModel.)

Top

See Also

Reference

Microsoft.VisualStudio.ComponentModelHost Namespace