This topic has not yet been rated - Rate this topic

AttributedModelServices.SatisfyImportsOnce Method (ICompositionService, Object, ReflectionContext)

.NET Framework 4.5

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICompositionService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ExceptionCondition
ArgumentNullException

reflectionContext is null.

.NET Framework

Supported in: 4.5

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.