IReferenceTracker::DisconnectFromTrackerSource method (microsoft.ui.xaml.hosting.referencetracker.h)
Indicates that a reference tracker source has stopped tracking a reference tracker.
Syntax
HRESULT DisconnectFromTrackerSource();
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Calling this method does not indicate that the tracker source has released all COM references on the reference tracker.
This method is called by the CLR during garbage collection when a runtime-callable wrapper is collected, but the XAML object does not get released until it is processed by the finalizer 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 |