ReflectionModelServices.GetPartType Method (ComposablePartDefinition)

 

Gets the type of a part from a specified part definition.

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

public static Lazy<Type> GetPartType(
	ComposablePartDefinition partDefinition
)

Parameters

partDefinition
Type: System.ComponentModel.Composition.Primitives.ComposablePartDefinition

The part definition to examine.

Return Value

Type: System.Lazy<Type>

The type of the defined part.

Exception Condition
ArgumentException

partDefinition is null.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: