Type.GetTypeHandle Method

May 11, 2014

Gets the handle for the Type of a specified object.

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

public static RuntimeTypeHandle GetTypeHandle(
	Object o
)

Parameters

o
Type: System.Object
The Object for which to get the Type handle.

Return Value

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

ExceptionCondition
ArgumentNullException

o is null.

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

Version Notes

Windows Phone

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft