IReferenceTrackerHost::GetTrackerTarget method (windows.ui.xaml.hosting.referencetracker.h)
Requests the host to provide a reference tracker target that references a reference tracker source. This tracker target then controls the lifetime of the tracker source.
Syntax
HRESULT GetTrackerTarget(
IUnknown *unknown,
IReferenceTrackerTarget **newReference
);
Parameters
unknown
The reference tracker source.
newReference
The reference tracker target.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For example, after calling this method, calling Peg on the tracker target will prevent the tracker source from being 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