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

WeakReference(Of 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(Of T) class that references the specified object and uses the specified resurrection tracking.

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

'Declaration
Public Sub New ( _
	target As T, _
	trackResurrection As Boolean _
)

Parameters

target
Type: T
The object to reference, or Nothing.
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:
© 2017 Microsoft