IReferenceTrackerTarget interface (windows.ui.xaml.hosting.referencetracker.h)

Defines an interface implemented by a garbage collector object referenced from XAML.

Inheritance

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

Methods

The IReferenceTrackerTarget interface has these methods.

 
IReferenceTrackerTarget::AddRefFromReferenceTracker

Indicates that the reference tracker is returning the target XAML object(s) from previous calls to FindTrackerTargets. Note that the reference is held by the reference tracker object in lieu of IUnknown::AddRef.
IReferenceTrackerTarget::Peg

Marks that the reference tracker target is in use by the XAML framework, and should not be collected.
IReferenceTrackerTarget::ReleaseFromReferenceTracker

Releases the XAML object reference marked in a previous call to AddRefFromReferenceTracker.
IReferenceTrackerTarget::Unpeg

Marks that the reference tracker target is no longer in use by the XAML framework, and can be collected.

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