WeakReference<T> Constructor (T, Boolean)

July 28, 2014

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
)

Parameters

target
Type: T
The object to reference, or null.
trackResurrection
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

Show:
© 2014 Microsoft