Condividi tramite


IComponentModel2 Interface

Definition

The interface provides the ability to access the default MEF composition container and catalogs of Visual Studio.

public interface class IComponentModel2 : Microsoft::VisualStudio::ComponentModelHost::IComponentModel
public interface class IComponentModel2 : Microsoft::VisualStudio::ComponentModelHost::IComponentModel
__interface IComponentModel2 : Microsoft::VisualStudio::ComponentModelHost::IComponentModel
public interface IComponentModel2 : Microsoft.VisualStudio.ComponentModelHost.IComponentModel
type IComponentModel2 = interface
    interface IComponentModel
Public Interface IComponentModel2
Implements IComponentModel
Implements

Properties

DefaultCatalog
Obsolete.
Obsolete.

Gets the default Visual Studio catalog.

(Inherited from IComponentModel)
DefaultCompositionService

Gets the composition service of Visual Studio default composition container that allows satisfying imports of object without them being a part of the container.

(Inherited from IComponentModel)
DefaultExportProvider

Gets the export provider of the default composition container of the Visual Studio.

(Inherited from IComponentModel)
DefaultScopedCatalog
Obsolete.

Gets the default scoped Visual Studio catalog.

Methods

GetCatalog(String)
Obsolete.

Provides access to a MEF catalog by name.

(Inherited from IComponentModel)
GetExtensions<T>()

Gets an enumeration of "extensions" from the default composition container, i.e. objects of which there can multiple instances exist in a given composition container. Equals to calling GetExportedValues<T>() directly.

(Inherited from IComponentModel)
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. Equals to calling GetExportedValue<T>() directly.

(Inherited from IComponentModel)

Applies to