Type.GetTypeFromHandle Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the type referenced by the specified type handle.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

Public Shared Function GetTypeFromHandle ( _
    handle As RuntimeTypeHandle _
) As Type
public static Type GetTypeFromHandle(
    RuntimeTypeHandle handle
)

Parameters

Return Value

Type: System..::.Type
The type referenced by the specified RuntimeTypeHandle, or nullNothingnullptra null reference (Nothing in Visual Basic) if the value of the handle is nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
TargetInvocationException

A class initializer is invoked and throws an exception.

Remarks

The handles are valid only in the application domain in which they were obtained.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Type Class

System Namespace

RuntimeTypeHandle

TypeHandle