Type.GetTypeHandle Method

Gets the handle for the Type of a specified object.

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


Public Shared Function GetTypeHandle ( _
    o As Object _
) As RuntimeTypeHandle
public static RuntimeTypeHandle GetTypeHandle(
    Object o


Return Value

Type: System.RuntimeTypeHandle
The handle for the Type of the specified Object.


Exception Condition

o is nulla null reference (Nothing in Visual Basic).


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

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

This member is present to support the .NET Compact Framework infrastructure in Silverlight for Windows Phone, and it is not intended to be used in your application code.

Version Information


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.