SetTarget Method
Collapse the table of content
Expand the table of content

WeakReference<T>.SetTarget Method

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

Sets the target object that is referenced by this WeakReference<T> object.

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

public void SetTarget(
	T target
)

Parameters

target
Type: T
The new target object.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft