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 8.x Store apps.
To install the following namespaces, open your project in Visual Studio 2012 or later, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Composition package.
Types supported in the .NET for Windows 8.x Store apps | Description |
|---|---|
Provides methods to retrieve exports from the composition. | |
Specifies that a type, property, field, or method provides a particular export. | |
A factory that creates new instances of a part that provides the specified export. | |
A factory that creates new instances of a part that provides the specified export, with attached metadata. | |
Holds an exported value created by an ExportFactory<T> object and a reference to a method to release that object. | |
Specifies metadata for a type, property, field, or method marked with the ExportAttribute. | |
Specifies that a property, field, or parameter value should be provided by the CompositionContainer.object. | |
Specifies that a property, field, or parameter should be populated with all matching exports by the CompositionContainer object. | |
Specifies which constructor should be used when creating a part. | |
Specifies that a custom attribute’s properties provide metadata for exports applied to the same type, property, field, or method. | |
Specifies metadata for a part. | |
Specifies that this type’s exports won’t be included in a ComposablePartCatalog. | |
Marks the decorated part as being constrained to sharing within the specified boundary. | |
When applied to an import of an HYPERLINK "https://msdn.microsoft.com/en-us/library/jj637957(v=vs.110).aspx" ExportFactory<T> object, marks the boundary of a sharing scope. |
Types supported in the .NET for Windows 8.x Store apps | Description |
|---|---|
Provides augmented reflection data to support convention-based models. | |
Contains methods to define objects as MEF parts. | |
Configures an export that is associated with a part. | |
Configures an import that is associated with a part. | |
Represents a helper type that is used only in expressions. | |
Configures a type as a part. | |
Configures a type as a part, with strongly typed return values. |
Types supported in the .NET for Windows 8.x Store apps | Description |
|---|---|
The exception that is thrown when composition problems occur. | |
Assembles a lightweight composition container from specified providers. | |
Configures and constructs a lightweight container. |
Types supported in the .NET for Windows 8.x Store apps | Description |
|---|---|
The delegate signature that allows instances of parts and exports to be accessed during a composition operation. | |
Defines a standard to match exports and imports. | |
Describes a dependency that a part must have. Used by the composition engine during initialization to determine whether the composition can be made, and if not, what error to provide. | |
Represents a single composition operation. | |
Allows export providers to locate their dependencies. | |
Describes an export of a part known to the composition engine. | |
Represents an export descriptor that an available part can provide. | |
An object that contributes to the composition. | |
Represents a node in the lifetime tree. |