CoreWebView2NavigationStartingEventArgs.Cancel Property
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.
Determines whether to cancel the navigation.
public bool Cancel { get; set; }
member this.Cancel : bool with get, set
Public Property Cancel As Boolean
Property Value
Remarks
If set to true
, the navigation is no longer present and the content of the current page is intact. For performance reasons, GET
HTTP requests may happen, while the host is responding. You may set cookies and use part of a request for the navigation. Navigations to about schemes are cancellable, unless msWebView2CancellableAboutNavigations
feature flag is disabled. Cancellation of frame navigation to srcdoc
is not supported and will be ignored.