IXamlDiagnostics::GetIInspectableFromHandle method (xamlom.h)

Gets the IInspectable from the XAML Diagnostics cache.

Syntax

HRESULT GetIInspectableFromHandle(
  [in]          InstanceHandle instanceHandle,
  [out, retval] IInspectable   **ppInstance
);

Parameters

[in] instanceHandle

A handle to the object.

[out, retval] ppInstance

The object as an IInspectable.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method will fail if XAML Diagnostics no longer has a reference to the element.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header xamlom.h

See also

IXamlDiagnostics