IReferenceTrackerHost interface (windows.ui.xaml.hosting.referencetracker.h)
Defines an interface that provides the global services used by the garbage collection (GC) system used by the XAML framework.
The IReferenceTrackerHost interface inherits from the IUnknown interface. IReferenceTrackerHost also has these types of members:
The IReferenceTrackerHost interface has these methods.
|IReferenceTrackerHost::AddMemoryPressure||Informs the host of increased memory allocations since the last notification. The CLR uses this to inform the algorithm that determines when to run a garbage collection.|
|IReferenceTrackerHost::DisconnectUnusedReferenceSources||Requests that the host perform a garbage collection and remove all unnecessary reference sources.|
|IReferenceTrackerHost::GetTrackerTarget||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.|
|IReferenceTrackerHost::NotifyEndOfReferenceTrackingOnThread||Notifies the host that reference tracking is no longer available on the calling thread; XAML calls this when the FrameworkView is uninitialized.|
|IReferenceTrackerHost::ReleaseDisconnectedReferenceSources||Requests that the host call IUnknown::Release on any reference tracker objects that have been disconnected by a reference source.|
|IReferenceTrackerHost::RemoveMemoryPressure||Informs the host of reduced memory allocations since the last notification.|
An implementation of this interface must be registered with the XAML framework by passing it to the IReferenceTrackerManager::SetReferenceTrackerHost method.
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|