AttributedModelServices.CreatePart Method (Object, ReflectionContext)

.NET Framework (current version)
 

Creates a composable part from the specified attributed object, using the specified reflection context.

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

public static ComposablePart CreatePart(
	object attributedPart,
	ReflectionContext reflectionContext
)

Parameters

attributedPart
Type: System.Object

The attributed object.

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: