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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for