AttributedModelServices.SatisfyImportsOnce AttributedModelServices.SatisfyImportsOnce AttributedModelServices.SatisfyImportsOnce AttributedModelServices.SatisfyImportsOnce Method

Definition

Composes a specified part.

Overloads

SatisfyImportsOnce(ICompositionService, Object) SatisfyImportsOnce(ICompositionService, Object) SatisfyImportsOnce(ICompositionService, Object) SatisfyImportsOnce(ICompositionService, Object)

Composes the specified part by using the specified composition service, with recomposition disabled.

SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) 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) SatisfyImportsOnce(ICompositionService, Object) SatisfyImportsOnce(ICompositionService, Object) SatisfyImportsOnce(ICompositionService, Object)

Composes the specified part by using the specified composition service, with recomposition disabled.

public:
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce (this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function SatisfyImportsOnce (compositionService As ICompositionService, attributedPart As Object) As ComposablePart

Parameters

compositionService
ICompositionService ICompositionService ICompositionService ICompositionService

The composition service to use.

attributedPart
Object Object Object Object

The part to compose.

Returns

Exceptions

An error occurred during composition. Errors contains a collection of errors that occurred.

Remarks

Unlike ordinary composition, parts composed with this method are not guaranteed to remain valid if the catalog behindcompositionService changes.

SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) SatisfyImportsOnce(ICompositionService, Object, ReflectionContext)

Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context.

public:
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart, System::Reflection::ReflectionContext ^ reflectionContext);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce (this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart, System.Reflection.ReflectionContext reflectionContext);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Primitives.ComposablePart

Parameters

compositionService
ICompositionService ICompositionService ICompositionService ICompositionService

The composition service to use.

attributedPart
Object Object Object Object

The part to compose.

reflectionContext
ReflectionContext ReflectionContext ReflectionContext ReflectionContext

The reflection context for the part.

Returns

Exceptions

An error occurred during composition. Errors contains a collection of errors that occurred.

Applies to