System.ComponentModel.Composition Namespace
This namespace provides classes that constitute the core of the Managed Extensibility Framework, or MEF.
| Class | Description | |
|---|---|---|
|
AttributedModelServices | Contains helper methods for using the attributed programming model with composition. |
|
ChangeRejectedException | An exception that indicates whether a part has been rejected during composition. |
|
CompositionContractMismatchException | The exception that is thrown when the underlying exported value or metadata of a Lazy<T> or Lazy<T, TMetadata> object cannot be cast to T or TMetadataView, respectively. |
|
CompositionError | Represents an error that occurred during composition. |
|
CompositionException | Represents the exception that is thrown when one or more errors occur during composition in a CompositionContainer object. |
|
ExportAttribute | Specifies that a type, property, field, or method provides a particular export. |
|
ExportMetadataAttribute | Specifies metadata for a type, property, field, or method marked with the ExportAttribute. |
|
ImportAttribute | Specifies that a property, field, or parameter value should be provided by the CompositionContainer. |
|
ImportCardinalityMismatchException | The exception that is thrown when the cardinality of an import is not compatible with the cardinality of the matching exports. |
|
ImportingConstructorAttribute | Specifies which constructor should be used when creating a part. |
|
ImportManyAttribute | Specifies that a property, field, or parameter should be populated with all matching exports by the CompositionContainer. |
|
InheritedExportAttribute | Specifies that a type provides a particular export, and that subclasses of that type will also provide that export. |
|
MetadataAttributeAttribute | Specifies that a custom attribute’s properties provide metadata for exports applied to the same type, property, field, or method. |
|
PartCreationPolicyAttribute | Specifies the CreationPolicy for a part. |
|
PartMetadataAttribute | Specifies metadata for a part. |
|
PartNotDiscoverableAttribute | Specifies that this type’s exports won’t be included in a ComposablePartCatalog. |
| Interface | Description | |
|---|---|---|
|
ICompositionService | Provides methods to satisfy imports on an existing part instance. |
|
IPartImportsSatisfiedNotification | Notifies a part when its imports have been satisfied. |
| Enumeration | Description | |
|---|---|---|
|
CreationPolicy | Specifies when and how a part will be instantiated. |