System.Composition.Runtime Provides methods to retrieve exports from the composition. Initializes a new instance of the class. Retrieves the export that matches the specified contract. The contract to match. No export was found for . The exported value. Retrieves the export that matches the specified type. The type to match. No export was found for . The exported value. Retrieves the export that matches the specified name and type. The type to match. The name to match. No export was found for and . The exported value. Retrieves the export that matches the specified generic type parameter. The type to match. No export was found for . The exported value. Retrieves the export that matches the specified generic type parameter and contract name. The name to match. The type to match. No export was found for and . The exported value. Retrieves a collection of all exports that match the specified type. The type to match. No exports were found for . A collection of exported values. Retrieves all exports that match the specified contract name and type. The type to match. The name to match. No exports were found for . A collection of exported values. Retrieves all exports that match the specified generic type parameter. The type to match. No exports were found for . A collection of exported values. Retrieves all exports that match the specified generic type parameter and contract name. The name to match. The type to match. No exports were found for and . A collection of exported values. Returns the export that matches the specified contract, or returns if no match is found. The contract to match. When this method returns, contains the matched export or . No export was found for . if an export was found; otherwise, . Returns the export that matches the specified type, or returns if no match is found. The type to match. When this method returns, contains the matched export or . No export was found for . if an export was found; otherwise, . Returns the export that matches the specified contract name and type, or returns if no match is found. The type to match. The name to match. When this method returns, contains the matched export or . No export was found for . if an export was found; otherwise, . Returns the export that matches the specified generic type parameter, or returns if no match is found. When this method returns, contains the matched export or . The type to match. No export was found for . if an export was found; otherwise, . Returns the export that matches the specified generic type parameter and contract name, or returns if no match is found. The name to match. When this method returns, contains the matched export or . The type to match. No export was found for . if an export was found; otherwise, . A reference that allows the graph of parts associated with an exported instance to be released. The type of the instance. Initializes a new instance of the class. The exported instance. An action that will dispose the exported instance. Disposes the exported instance. Gets the exported value. The exported value. A factory that creates new instances of a part that provides the specified export. The type of the export. Initializes a new instance of the class. A function that returns the exported value in and an that releases it in . is . Creates an instance of the factory's export type. A valid instance of the factory's export type. A factory that creates new instances of a part that provides the specified export, with attached metadata. The type of the created part. The metadata for the type of the created part. Initializes a new instance of the class. A function that returns the exported value in and an that releases it in . The metadata to attach to the created parts. Gets the metadata to be attached to the created parts. A metadata object that will be attached to the created parts. The exception that is thrown when composition problems occur. Initializes a new instance of the class. Initializes a new instance of the class with the specified message. A message that contains information about the exception. Initializes a new instance of the class with the specified message and inner exception. A message that contains information about the exception. The inner exception to wrap in this exception. Represents an agreement between parts that allows the composition engine to match imports with exports. Initializes a new instance of the class with the specified contract type. The contract type. Initializes a new instance of the class with the specified contract name and type. The contract type. The contract name. Initializes a new instance of the class with the specified contract name, type, and metadata constraints. The contract type. The contract name. A collection of metadata constraints for the contract. Creates a new contract that has the specified type but the same name and constraints as this object. The new contract type. The created contract. Determines whether the specified object is equal to this instance of . The object to compare with this object. if the specified object is equal to the current object; otherwise, . Returns the hash code for this object. The hash code for the current object. Returns the string representation of this object. The string representation of this object. Gets a metadata constraint that has the specified type and name, if it exists. The name of the metadata constraint. When this method returns, contains the value of the constraint if it was found. This parameter is treated as uninitialized. When this method returns, holds the contract with the constraint removed, if the constraint was found. This parameter is treated as uninitialized. The type of the metadata constraint value. if the constrained metadata item was unwrapped and the value extracted; otherwise, . Gets the name of the contract. The contract name. Gets the contract type. The contract type. Gets a collection of metadata constraints for the contract. A collection of metadata constraints.