Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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: 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.

name

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

See also

msSetWeakWinRTProperty

 

 

Show:
© 2015 Microsoft