System.ComponentModel.Composition.Primitives 命名空间
此命名空间提供作为 MEF 编程模型基础的基元类型。 This namespace provides the primitive types underlying the MEF programming model.
类
| ComposablePart |
定义用于导入对象和生成已导出对象的可组合部件的抽象基类。Defines the abstract base class for composable parts, which import objects and produce exported objects. |
| ComposablePartCatalog |
表示收集并返回 ComposablePartDefinition 对象的可组合部件目录的抽象基类。Represents the abstract base class for composable part catalogs, which collect and return ComposablePartDefinition objects. |
| ComposablePartDefinition |
定义可组合部件定义的抽象基类,可组合部件定义可描述和启用 ComposablePart 对象的创建。Defines an abstract base class for composable part definitions, which describe and enable the creation of ComposablePart objects. |
| ComposablePartException |
在对 ComposablePart 对象调用方法时,发生错误的情况下引发的异常。The exception that is thrown when an error occurs when calling methods on a ComposablePart object. |
| ContractBasedImportDefinition |
表示 ComposablePart 对象必需的且可以指定协定名称和元数据的导入。Represents an import that is required by a ComposablePart object and that can specify both a contract name and metadata. |
| Export |
表示一个导出,它是由延迟创建的已导出对象和描述该对象的元数据组成的类型。Represents an export, which is a type that consists of a delay-created exported object and the metadata that describes that object. |
| ExportDefinition |
描述特定 Export 对象所满足的协定。Describes the contract that a particular Export object satisfies. |
| ExportedDelegate |
表示一个由 ComposablePart 导出的函数。Represents a function exported by a ComposablePart. |
| ImportDefinition |
表示 ComposablePart 对象所需要的导入。Represents an import that is required by a ComposablePart object. |
接口
| ICompositionElement |
表示一个参与组合的元素。Represents an element that participates in composition. |
枚举
| ImportCardinality |
指示 Export 所需的 ImportDefinition 对象的基数。Indicates the cardinality of the Export objects required by an ImportDefinition. |