CoreWebView2Environment.CreateDiagnosticMonitor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.