Export (0) Print
Expand All

WeakReference<T> Constructor (T, Boolean)

.NET Framework 4.6 and 4.5

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.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft