interface ICoreWebView2ExperimentalDiagnosticReceivedEventArgs

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalDiagnosticReceivedEventArgs
  : public IUnknown

Event args for the DiagnosticReceived event on ICoreWebView2ExperimentalDiagnosticMonitor.

Summary

Members Descriptions
get_Category The diagnostic category that this event belongs to.
get_DetailsAsJson Returns category-specific diagnostic data as a JSON string.
get_Scope The scope that originated this diagnostic signal.
get_Timestamp The wall-clock time at which the runtime observed this diagnostic event, as the number of milliseconds since the UNIX epoch (1970-01-01T00:00:00Z, UTC).

Each instance represents a single diagnostic signal.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.4181

Members

get_Category

The diagnostic category that this event belongs to.

public HRESULT get_Category(COREWEBVIEW2_DIAGNOSTIC_CATEGORY * value)

get_DetailsAsJson

Returns category-specific diagnostic data as a JSON string.

public HRESULT get_DetailsAsJson(LPWSTR * value)

The schema for each category is documented on the corresponding COREWEBVIEW2_DIAGNOSTIC_CATEGORY enum value.

The runtime may include additional key-value pairs beyond the documented fields. Consumers should ignore unknown keys.

The caller must free the returned string with CoTaskMemFree. See API Conventions.

get_Scope

The scope that originated this diagnostic signal.

public HRESULT get_Scope(COREWEBVIEW2_DIAGNOSTIC_SCOPE * value)

get_Timestamp

The wall-clock time at which the runtime observed this diagnostic event, as the number of milliseconds since the UNIX epoch (1970-01-01T00:00:00Z, UTC).

public HRESULT get_Timestamp(INT64 * value)

Use this value to correlate diagnostic events with other timestamped telemetry. The value is derived from the system clock and may be affected by clock adjustments (for example, NTP).