WeakGCHandle<T>(T, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.