System.Composition Namespace

.NET Framework 4.5

The System.Composition namespace provides classes that constitute the core of the Managed Extensibility Framework (MEF) for Windows Store apps.

  Class Description
Public class CompositionContext Provides methods to retrieve exports from the composition.
Public class CompositionContextExtensions Adds methods to the composition context that are specific to the typed parts model.
Public class Export<T> A reference that allows the graph of parts associated with an exported instance to be released.
Public class ExportAttribute Specifies that a type, property, field, or method provides a particular export.
Public class ExportFactory<T> A factory that creates new instances of a part that provides the specified export.
Public class ExportFactory<T, TMetadata> A factory that creates new instances of a part that provides the specified export, with attached metadata.
Public class ExportMetadataAttribute Specifies metadata for a type, property, field, or method that is marked with the ExportAttribute attribute.
Public class ImportAttribute Specifies that a property, field, or parameter value should be provided by the host container.
Public class ImportingConstructorAttribute Specifies which constructor should be used when creating a part.
Public class ImportManyAttribute Specifies that a property, field, or parameter should be populated with all matching exports by the host container.
Public class ImportMetadataConstraintAttribute Specifies that an import requires certain metadata values.
Public class MetadataAttributeAttribute Specifies that a custom attribute’s properties provide metadata for exports applied to the same type, property, field, or method.
Public class OnImportsSatisfiedAttribute Specifies that a method should be called when composition is completed.
Public class PartMetadataAttribute Specifies metadata for a part.
Public class PartNotDiscoverableAttribute Specifies that this type’s exports won’t be included in a catalog.
Public class SharedAttribute Marks the decorated part as being constrained to sharing within the specified boundary.
Public class SharingBoundaryAttribute When applied to an import of an ExportFactory<T> object, marks the boundary of a sharing scope.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft