IReferenceTrackerTarget::AddRefFromReferenceTracker method (windows.ui.xaml.hosting.referencetracker.h)
Indicates that the reference tracker is returning the target XAML object(s) from previous calls to FindTrackerTargets. Note that the reference is held by the reference tracker object in lieu of IUnknown::AddRef.
Syntax
ULONG AddRefFromReferenceTracker();
Return value
None
Remarks
When the XAML framework keeps this reference in lieu of a COM reference, it indicates that the framework must call your implementation of Peg to ensure that the target does not get collected.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | windows.ui.xaml.hosting.referencetracker.h |