Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Retrieves the object that is the target of the specified weak reference that was created by the msSetWeakWinRTProperty function.

var object = msGetWeakWinRTProperty(winRtObject, name);



Type: Object

The Windows Runtime object that stored the weak reference. If this object is null or is not a Windows Runtime object, this function throws a TypeError exception.


Type: String

The name of the weak reference.

Return value

Type: Object

The weakly referenced object, if it still exists. If the object was reclaimed by the garbage collector or there isn't a weak reference associated with the specified name, this function returns null.


Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

See also




© 2015 Microsoft