AttributedModelServices.SatisfyImportsOnce Method (ICompositionService, Object, ReflectionContext)

.NET Framework (current version)
 
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 and using the specified reflection context.

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

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

Parameters

compositionService
Type: System.ComponentModel.Composition.ICompositionService

The composition service to use.

attributedPart
Type: System.Object

The part to compose.

reflectionContext
Type: System.Reflection.ReflectionContext

The reflection context for the part.

Exception Condition
ArgumentNullException

reflectionContext is null.

.NET Framework
Available since 4.5
Return to top
Show: