Lingua

CoreWebView2DiagnosticMonitor Class

Definition

A diagnostic monitor that receives diagnostic signals from all layers - WebView, Profile, and Environment. Created via CreateDiagnosticMonitor(). Each monitor has its own filters and event handlers, allowing multiple independent consumers, for example one for telemetry and one for a debug panel. The monitor is active from creation until it is released. Releasing the monitor automatically stops all events and clears all filters. Implements IClosable for deterministic cleanup.

public class CoreWebView2DiagnosticMonitor
type CoreWebView2DiagnosticMonitor = class
Public Class CoreWebView2DiagnosticMonitor
Inheritance
CoreWebView2DiagnosticMonitor

Methods

Name Description
Close()

Release the diagnostic subscription and any registered handlers.

RemoveDiagnosticFilter(CoreWebView2DiagnosticCategory)

Removes the diagnostic filter for the specified category. After this call, DiagnosticReceived no longer fires for events in this category.

SetDiagnosticFilter(CoreWebView2DiagnosticCategory, String)

Sets a diagnostic filter for the specified category. After this call, DiagnosticReceived is raised for events in this category that match the JSON criteria.

Events

Name Description
DiagnosticReceived

Raised when a diagnostic signal passes a filter set with SetDiagnosticFilter(CoreWebView2DiagnosticCategory, String).

Applies to