CompositionService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods to satisfy imports on an existing part instance.
public ref class CompositionService : IDisposable, System::ComponentModel::Composition::ICompositionService
public class CompositionService : IDisposable, System.ComponentModel.Composition.ICompositionService
type CompositionService = class
interface ICompositionService
interface IDisposable
Public Class CompositionService
Implements ICompositionService, IDisposable
- Inheritance
-
CompositionService
- Implements
Remarks
Important
This type implements the IDisposable interface. When you've finished using the type, you should dispose of it either directly (by calling its Dispose method) or indirectly (with a language construct such as using in C#). For more information, see Use an object that implements IDisposable.
Methods
| Name | Description |
|---|---|
| Dispose() |
Releases all resources used by the current instance of the CompositionContainer class. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| SatisfyImportsOnce(ComposablePart) |
Composes the specified part, with recomposition and validation disabled. |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
| Name | Description |
|---|---|
| SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) |
Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context. |
| SatisfyImportsOnce(ICompositionService, Object) |
Composes the specified part by using the specified composition service, with recomposition disabled. |