Export (0) Print
Expand All

GCHandle.Alloc Method

Allocates a handle for the specified object.

Overload List

Allocates a Normal handle for the specified object.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Alloc(Object) As GCHandle
[C#] public static GCHandle Alloc(object);
[C++] public: static GCHandle Alloc(Object*);
[JScript] public static function Alloc(Object) : GCHandle;

Allocates a handle of the specified type for the specified object.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Alloc(Object, GCHandleType) As GCHandle
[C#] public static GCHandle Alloc(object, GCHandleType);
[C++] public: static GCHandle Alloc(Object*, GCHandleType);
[JScript] public static function Alloc(Object, GCHandleType) : GCHandle;

See Also

GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace

Show:
© 2014 Microsoft