IReferenceTracker interface (windows.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 the AddRef call. |
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 out what reference tracker targets are reachable from a reference tracker source; must be called by a garbage collector between calls to ReferenceTrackingStarted and FindTrackerTargetsCompleted. |
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 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 |