IReferenceTrackerHost interface
Defines an interface that provides the global services used by the garbage collection (GC) system used by the XAML framework.
Members
The IReferenceTrackerHost interface inherits from the IUnknown interface. IReferenceTrackerHost also has these types of members:
Methods
The IReferenceTrackerHost interface has these methods.
| Method | Description |
|---|---|
| AddMemoryPressure |
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. |
| DisconnectUnusedReferenceSources |
Requests that the host perform a garbage collection and remove all unnecessary reference sources. |
| GetTrackerTarget |
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. |
| NotifyEndOfReferenceTrackingOnThread |
Notifies the host that reference tracking is no longer available on the calling thread; XAML calls this when the FrameworkView is uninitialized. |
| ReleaseDisconnectedReferenceSources |
Requests that the host call IUnknown::Release on any reference tracker objects that have been disconnected by a reference source. |
| RemoveMemoryPressure |
Informs the host of reduced memory allocations since the last notification. |
Remarks
An implementation of this interface must be registered with the XAML framework by passing it to the IReferenceTrackerManager::SetReferenceTrackerHost method.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|