WeakReference(T) Constructor (T, Boolean)
Collapse the table of content
Expand the table of content

WeakReference<T> Constructor (T, Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the WeakReference<T> class that references the specified object and uses the specified resurrection tracking.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public WeakReference(
	T target,
	bool trackResurrection


Type: T
The object to reference, or null.
Type: System.Boolean
true to track the object after finalization; false to track the object only until finalization.

Windows Phone OS

Supported in: 8.1, 8.0

© 2016 Microsoft