Sdílet prostřednictvím


System.ComponentModel.Composition.Primitives Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This namespace provides the primitive types underlying the MEF programming model.

Classes

  Class Description
Public class ComposablePart Defines the abstract base class for composable parts, which import objects and produce exported objects.
Public class ComposablePartCatalog Represents the abstract base class for composable part catalogs, which collect and return ComposablePartDefinition objects.
Public class ComposablePartDefinition Defines an abstract base class for composable part definitions, which describe and enable the creation of ComposablePart objects.
Public class ComposablePartException The exception that is thrown when an error occurs when calling methods on a ComposablePart object.
Public class ContractBasedImportDefinition Represents an import that is required by a ComposablePart object and that can specify both a contract name and metadata.
Public class Export Represents an export, which is a type that consists of a delay-created exported object and the metadata that describes that object.
Public class ExportDefinition Describes the contract that a particular Export object satisfies.
Public class ExportedDelegate Represents a function exported by a ComposablePart.
Public class ImportDefinition Represents an import that is required by a ComposablePart object.

Interfaces

  Interface Description
Public interface ICompositionElement Represents an element that participates in composition.

Enumerations

  Enumeration Description
Public enumeration ImportCardinality Indicates the cardinality of the Export objects required by an ImportDefinition.