Language

CoreWebView2Frame.LaunchingExternalUriScheme Event

Definition

LaunchingExternalUriScheme is raised when content in this CoreWebView2Frame, or in one of its descendant iframes, attempts to launch a URI registered with the OS as an external scheme handler. This is the frame-level counterpart of the LaunchingExternalUriScheme event, allowing host apps to attribute external URI scheme launches to a specific iframe even when multiple frames share the same origin. When the launch originates from a nested iframe, the event bubbles outward through the tracked CoreWebView2Frame ancestors, starting with the closest (innermost) tracked frame and proceeding outward toward the top-level frame. For an iframe-initiated launch, the CoreWebView2Frame event handlers are invoked before the LaunchingExternalUriScheme event handlers. If the Handled property is set to true within a CoreWebView2Frame event handler, the event will not be raised on the remaining ancestor frames or on the CoreWebView2, and their event handlers will not be invoked.

public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2LaunchingExternalUriSchemeEventArgs> LaunchingExternalUriScheme;
member this.LaunchingExternalUriScheme : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2LaunchingExternalUriSchemeEventArgs> 
Public Custom Event LaunchingExternalUriScheme As EventHandler(Of CoreWebView2LaunchingExternalUriSchemeEventArgs) 

Event Type

Applies to