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.
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.
Requests that the host perform a garbage collection and remove all unnecessary reference sources.
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.
Notifies the host that reference tracking is no longer available on the calling thread; XAML calls this when the FrameworkView is uninitialized.
Requests that the host call IUnknown::Release on any reference tracker objects that have been disconnected by a reference source.
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]|