Mono Class Library: System.Type Overview | Members

System.Type.GetTypeFromHandle Method

Gets the Type referenced by the specified type handle.

public static Type GetTypeFromHandle (RuntimeTypeHandle handle)

Parameters

handle
The RuntimeTypeHandle object that refers to the desired Type.

Returns

The Type referenced by the specified RuntimeTypeHandle.

Permissions

TypeReason
System.Security.Permissions.ReflectionPermissionRequires permission to retrieve information on non-public objects. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation

Exceptions

TypeReason
ArgumentNullExceptionhandle is null.
System.Security.SecurityExceptionThe requested type is non-public and outside the current assembly, and the caller does not have the required permission.
System.Reflection.TargetInvocationExceptionA type initializer was invoked and threw an exception.

Remarks

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

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0