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!

GCHandle.Alloc (Object, GCHandleType)

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;

Parameters

value
The object that the GC handle is created for
type
[To be supplied.]

Return Value

Returns a new GC handle that protects the object.

See Also

GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace | GCHandle.Alloc Overload List