NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Type.GetTypeFromHandle

Gets the Type referenced by the specified type handle.

[Visual Basic]
Public Shared Function GetTypeFromHandle( _
   ByVal handle As RuntimeTypeHandle _
) As Type
[C#]
public static Type GetTypeFromHandle(
   RuntimeTypeHandle handle
);
[C++]
public: static Type* GetTypeFromHandle(
   RuntimeTypeHandle handle
);
[JScript]
public static function GetTypeFromHandle(
   handle : RuntimeTypeHandle
) : Type;

Parameters

handle
The RuntimeTypeHandle object that refers to the Type.

Return Value

The Type referenced by the specified RuntimeTypeHandle.

Exceptions

Exception Type Condition
ArgumentNullException handle is a null reference (in Visual Basic Nothing).
SecurityException The requested Type is non-public and the caller does not have ReflectionPermission to reflect non-public objects outside the current assembly.
TargetInvocationException A class initializer is invoked and throws an exception.

See Also

Type Class | Type Members | System Namespace | RuntimeTypeHandle | TypeHandle | GetTypeHandle