IReferenceTracker::DisconnectFromTrackerSource method (windows.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 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

See also

IReferenceTracker