AttributedModelServices.SatisfyImportsOnce Method (ICompositionService, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public static ComposablePart SatisfyImportsOnce(
	this ICompositionService compositionService,
	object attributedPart
)

Parameters

compositionService
Type: System.ComponentModel.Composition.ICompositionService

The composition service to use.

attributedPart
Type: System.Object

The part to compose.

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

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: