Condividi tramite


IComponentModel Interface

Definition

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

public interface class IComponentModel
public interface class IComponentModel
__interface IComponentModel
public interface IComponentModel
type IComponentModel = interface
Public Interface IComponentModel
Derived

Properties

DefaultCatalog
Obsolete.
Obsolete.

Gets the default Visual Studio catalog.

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.

DefaultExportProvider

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

Methods

GetCatalog(String)
Obsolete.

Provides access to a MEF catalog by name.

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.

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.

Applies to