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

Defines the interface implemented by the XAML framework for managing XAML object references.

Inheritance

The IReferenceTracker interface inherits from the IUnknown interface. IReferenceTracker also has these types of members:

Methods

The IReferenceTracker interface has these methods.

 
IReferenceTracker::AddRefFromTrackerSource

Indicates each time that a tracker source calls IUnknown::AddRef on the reference tracker (called after AddRef).
IReferenceTracker::ConnectFromTrackerSource

Indicates that a reference tracker source has created its first COM reference on a reference tracker object.
IReferenceTracker::DisconnectFromTrackerSource

Indicates that a reference tracker source has stopped tracking a reference tracker.
IReferenceTracker::FindTrackerTargets

Finds the reference tracker targets that are reachable from a reference tracker source.
IReferenceTracker::GetReferenceTrackerManager

Gets an IReferenceTrackerManager interface from a XAML object.
IReferenceTracker::PegFromTrackerSource

Indicates that a tracker source is unable to protected a reference tracker object.
IReferenceTracker::ReleaseFromTrackerSource

Indicates each time that a tracker source calls IUnknown::Release on the reference tracker (must be called before the Release call).

Remarks

This interface is implemented by most XAML framework objects. It is not defined as agile, nor does it marshal across apartments. Use it only from within the apartment of the XAML object that implements it.

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