System.Composition namespaces

System.Composition and its child namespaces (System.Composition.Convention, System.Composition.Hosting, and System.Composition.Hosting.Core) contain types for developing extensible applications.

This topic displays the types in the System.Composition namespaces that can be installed and used to create Windows Store apps.

To install the following namespaces, open your project in Visual Studio 2012, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Composition package.

Types supported in the .NET for Windows Store apps

Description

CompositionContext

ExportAttribute

Specifies that a type, property, field, or method provides a particular export.

ExportFactory<T>

A factory that creates new instances of a part that provides the specified export.

ExportFactory<T, TMetadata>

A factory that creates new instances of a part that provides the specified export, with attached metadata.

ExportLifetimeContext<T>

Holds an exported value created by an ExportFactory<T> object and a reference to a method to release that object.

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.object.

ImportManyAttribute

Specifies that a property, field, or parameter should be populated with all matching exports by the CompositionContainer object.

ImportMetadataConstraintAttribute

ImportingConstructorAttribute

Specifies which constructor should be used when creating a part.

MetadataAttributeAttribute

Specifies that a custom attribute’s properties provide metadata for exports applied to the same type, property, field, or method.

OnImportsSatisfiedAttribute

PartMetadataAttribute

Specifies metadata for a part.

PartNotDiscoverableAttribute

Specifies that this type’s exports won’t be included in a ComposablePartCatalog.

SharedAttribute

SharingBoundaryAttribute

Types supported in the .NET for Windows Store apps

AttributedModelProvider

CompositionContextExtensions

ConventionBuilder

ExportConventionBuilder

ImportConventionBuilder

ParameterImportConventionBuilder

PartConventionBuilder

PartConventionBuilder<T>

Types supported in the .NET for Windows Store apps

CompositionFailedException

CompositionHost

ContainerConfiguration

Types supported in the .NET for Windows Store apps

CompositeActivator

CompositionContract

CompositionOperation

Dependency

DependencyAccessor

ExportDescriptor

ExportDescriptorPromise

ExportDescriptorProvider

LifetimeContext

Show:
© 2014 Microsoft