Idioma

CoreWebView2Environment.CreateDiagnosticMonitor Method

Definition

Creates a new diagnostic monitor. The monitor receives diagnostic signals from all layers - WebView, Profile, and Environment - that match its filters.

public Microsoft.Web.WebView2.Core.CoreWebView2DiagnosticMonitor CreateDiagnosticMonitor();
member this.CreateDiagnosticMonitor : unit -> Microsoft.Web.WebView2.Core.CoreWebView2DiagnosticMonitor
Public Function CreateDiagnosticMonitor () As CoreWebView2DiagnosticMonitor

Returns

Remarks

Multiple monitors can coexist, each with its own filters and event handlers. The monitor is active immediately, but no events fire until a filter is set via SetDiagnosticFilter(CoreWebView2DiagnosticCategory, String). Release the monitor to stop receiving events and free resources.

Applies to