Share via


UrlLoadingStrategy Enum

Definition

URL loading strategy for anchor tags <a> within a Blazor WebView.

Anchor tags with target="_blank" will always open in the default browser and the UrlLoading event won't be called.

public enum class UrlLoadingStrategy
public enum UrlLoadingStrategy
type UrlLoadingStrategy = 
Public Enum UrlLoadingStrategy
Inheritance
UrlLoadingStrategy

Fields

Name Value Description
OpenExternally 0

Allows loading URLs using an app determined by the system. This is the default strategy for URLs with an external host.

OpenInWebView 1

Allows loading URLs within the Blazor WebView. This is the default strategy for URLs with a host matching the app origin.

This strategy should not be used for external links unless you can ensure they are fully trusted.

CancelLoad 2

Cancels the current URL loading attempt.

Applies to