Type.GetTypeHandle Method

Gets the handle for the Type of a specified object.

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

Syntax

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

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

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

Silverlight

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

Platforms

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