Allocates a handle of the required type for the object specified.
[Visual Basic] Overloads Public Shared Function Alloc( _ ByVal value As Object, _ ByVal type As GCHandleType _ ) As GCHandle [C#] public static GCHandle Alloc( object value, GCHandleType type ); [C++] public: static GCHandle Alloc( Object* value, GCHandleType type ); [JScript] public static function Alloc( value : Object, type : GCHandleType ) : GCHandle;
Returns a new GC handle that protects the object.
GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace | GCHandle.Alloc Overload List