CompositionContainer Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Serves as a repository for ComposablePart objects and provides methods for composition.

The CompositionContainer type exposes the following members.

  NameDescription
Public method CompositionContainer Overloaded. Initializes a new instance of the CompositionContainer class.
Top

  NameDescription
Public method AddPart Overloaded. Adds the specified composable part to the container.
Public method Compose Executes composition on the container.
Protected method CreatePart Creates a ComposablePart object out of the specified object.
Public method Dispose Overloaded.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetExport<T> Overloaded.
Public method GetExportedObject<T> Overloaded.
Public method GetExportedObjectOrDefault<T> Overloaded.
Public method GetExportedObjects<T> Overloaded.
Public method GetExports Overloaded. Gets all exports matching the specified conditions.
Public method GetExports<T> Overloaded.
Protected method GetExportsCore Returns a collection of all exports that match the conditions given in the specified ImportDefinition object. (Overrides ExportProvider.GetExportsCore(ImportDefinition).)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnExportsChanged Raises the ExportsChanged event. (Overrides ExportProvider.OnExportsChanged(ExportsChangedEventArgs).)
Public method ReleaseExport Releases the Export from the CompositionContainer object.
Public method RemovePart Removes the specified ComposablePart object from the container.
Public method SatisfyImports Overloaded. Satisfies the imports of the specified ComposablePart object.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Public method TryGetExports Gets all the exports that match the conditions of the specified import. (Inherited from ExportProvider.)
Public method UnregisterForRecomposition Unregisters the specified part from recomposition.
Top

  NameDescription
Public property IsComposing Gets a value that indicates whether the container is currently composing.
Public property IsCompositionPending Gets a value that indicates whether the container has a composition pending.
Public property Providers Gets a collection of the export providers used by this CompositionContainer object.
Top

  NameDescription
Public event ExportsChanged Occurs when the exports in the ExportProvider object change. (Overrides ExportProvider.ExportsChanged.)
Top

Community Additions

Show: