ReflectionModelServices.GetPartType Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Updated: December 2010
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)
Syntax
'Declaration
Public Shared Function GetPartType ( _
partDefinition As ComposablePartDefinition _
) As Lazy(Of Type)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentException | partDefinition is nulla null reference (Nothing in Visual Basic). |
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also
Reference
Change History
Date |
History |
Reason |
---|---|---|
December 2010 |
Added exception. |
Content bug fix. |