IReferenceTrackerManager interface (microsoft.ui.xaml.hosting.referencetracker.h)

Defines the interface for a XAML object reference manager. Implement this interface to manage instances of IReferenceTracker on XAML objects.

Inheritance

The IReferenceTrackerManager interface inherits from the IUnknown interface.

Methods

The IReferenceTrackerManager interface has these methods.

 
IReferenceTrackerManager::FindTrackerTargetsCompleted

Indicates that a garbage collection system has finished making all the calls it needs to IReferenceTracker::FindTrackerTargets (by this time, XAML has pegged all reference tracker targets that it wants to protect).
IReferenceTrackerManager::ReferenceTrackingCompleted

Indicates that a garbage collection system has finished with its collection process (at this point, XAML unblocks threads attempting to update tracked references).
IReferenceTrackerManager::ReferenceTrackingStarted

Indicates that a garbage collector is performing a collection.
IReferenceTrackerManager::SetReferenceTrackerHost

Registers an IReferenceTrackerHost interface with XAML.

Remarks

Obtain a reference to an implementation of this interface by calling GetReferenceTrackerManager on a XAML object that implements IReferenceTracker.

There is only one instance of IReferenceTrackerManager for a process, and it may be called from any thread.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 0.5 or later)
Header microsoft.ui.xaml.hosting.referencetracker.h