Edit

Share via


GCHandle<T>(T) Constructor

Definition

Allocates a handle for the specified object.

public:
 GCHandle(T target);
public GCHandle(T target);
new System.Runtime.InteropServices.GCHandle<'T (requires 'T : null)> : 'T -> System.Runtime.InteropServices.GCHandle<'T (requires 'T : null)>
Public Sub New (target As T)

Parameters

target
T

The object that uses the GCHandle<T>.

Applies to