msGetWeakWinRTProperty
Retrieves the object that is the target of the specified weak reference that was created by the msSetWeakWinRTProperty function.
var object = msGetWeakWinRTProperty(winRtObject, name);
Parameters
winRtObject
Type: ObjectThe 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.
name
Type: StringThe 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.
Requirements
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |