Freigeben über


CoreWebView2NavigationStartingEventArgs.Cancel Property

Definition

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.

Applies to