CompositionContainer Methods

CompositionContainer Methods

 

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

NameDescription
System_CAPS_pubmethodCompose(CompositionBatch)

Adds or removes the parts in the specified CompositionBatch from the container and executes composition.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the CompositionContainer class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the CompositionContainer and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetExport<T>()

Returns the export with the contract name derived from the specified type parameter. If there is not exactly one matching export, an exception is thrown.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExport<T>(String)

Returns the export with the specified contract name. If there is not exactly one matching export, an exception is thrown.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValue<T>()

Returns the exported object with the contract name derived from the specified type parameter. If there is not exactly one matching exported object, an exception is thrown.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValue<T>(String)

Returns the exported object with the specified contract name. If there is not exactly one matching exported object, an exception is thrown.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValueOrDefault<T>()

Gets the exported object with the contract name derived from the specified type parameter or the default value for the specified type, or throws an exception if there is more than one matching exported object.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValueOrDefault<T>(String)

Gets the exported object with the specified contract name or the default value for the specified type, or throws an exception if there is more than one matching exported object.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValues<T>()

Gets all the exported objects with the contract name derived from the specified type parameter.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExportedValues<T>(String)

Gets all the exported objects with the specified contract name.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExports(ImportDefinition)

Gets all exports that match the conditions of the specified import definition.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExports(ImportDefinition, AtomicComposition)

Gets all exports that match the conditions of the specified import definition and composition.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExports(Type, Type, String)

Gets all the exports with the specified contract name.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExports<T>()

Gets all the exports with the contract name derived from the specified type parameter.(Inherited from ExportProvider.)

System_CAPS_pubmethodGetExports<T>(String)

Gets all the exports with the specified contract name.(Inherited from ExportProvider.)

System_CAPS_protmethodGetExportsCore(ImportDefinition, AtomicComposition)

Returns a collection of all exports that match the conditions in the specified ImportDefinition object.(Overrides ExportProvider.GetExportsCore(ImportDefinition, AtomicComposition).)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnExportsChanged(ExportsChangeEventArgs)

Raises the ExportsChanged event.(Inherited from ExportProvider.)

System_CAPS_protmethodOnExportsChanging(ExportsChangeEventArgs)

Raises the ExportsChanging event.(Inherited from ExportProvider.)

System_CAPS_pubmethodReleaseExport(Export)

Releases the specified Export object from the CompositionContainer.

System_CAPS_pubmethodReleaseExport<T>(Lazy<T>)

Removes the specified export from composition and releases its resources if possible.

System_CAPS_pubmethodReleaseExports(IEnumerable<Export>)

Releases a set of Export objects from the CompositionContainer.

System_CAPS_pubmethodReleaseExports<T>(IEnumerable<Lazy<T>>)

Removes a collection of exports from composition and releases their resources if possible.

System_CAPS_pubmethodReleaseExports<T, TMetadataView>(IEnumerable<Lazy<T, TMetadataView>>)

Removes a collection of exports from composition and releases their resources if possible.

System_CAPS_pubmethodSatisfyImportsOnce(ComposablePart)

Satisfies the imports of the specified ComposablePart object without registering it for recomposition.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetExports(ImportDefinition, AtomicComposition, IEnumerable<Export>)

Gets all the exports that match the conditions of the specified import.(Inherited from ExportProvider.)

NameDescription
System_CAPS_pubmethodComposeExportedValue<T>(T)

Overloaded. Creates a part from the specified value and composes it in the specified composition container.(Defined by AttributedModelServices.)

System_CAPS_pubmethodComposeExportedValue<T>(String, T)

Overloaded. Creates a part from the specified object under the specified contract name and composes it in the specified composition container.(Defined by AttributedModelServices.)

System_CAPS_pubmethodComposeParts(Object[])

Creates composable parts from an array of attributed objects and composes them in the specified composition container.(Defined by AttributedModelServices.)

System_CAPS_pubmethodSatisfyImportsOnce(Object)

Overloaded. Composes the specified part by using the specified composition service, with recomposition disabled.(Defined by AttributedModelServices.)

System_CAPS_pubmethodSatisfyImportsOnce(Object, ReflectionContext)

Overloaded. Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context.(Defined by AttributedModelServices.)

Return to top
Show:
© 2016 Microsoft