Edit

Share via


WeakGCHandle<T>(T, Boolean) Constructor

Definition

Initializes a new instance of WeakGCHandle<T>.

public WeakGCHandle(T target, bool trackResurrection = false);
new System.Runtime.InteropServices.WeakGCHandle<'T (requires 'T : null)> : 'T * bool -> System.Runtime.InteropServices.WeakGCHandle<'T (requires 'T : null)>
Public Sub New (target As T, Optional trackResurrection As Boolean = false)

Parameters

target
T

The object that uses the WeakGCHandle<T>.

trackResurrection
Boolean

true to track the object when it's resurrected in the finalizer; otherwise, false.

Applies to