UrlLoadingEventArgs.UrlLoadingStrategy 属性

定义

从 Web 视图加载链接时要使用的策略。 默认为 OpenExternally ,除非 Url 具有与应用源匹配的主机,在这种情况下,默认值为 OpenInWebView

对于外部链接,不应将此值更改为 OpenInWebView ,除非可以确保它们完全受信任。

public:
 property Microsoft::AspNetCore::Components::WebView::UrlLoadingStrategy UrlLoadingStrategy { Microsoft::AspNetCore::Components::WebView::UrlLoadingStrategy get(); void set(Microsoft::AspNetCore::Components::WebView::UrlLoadingStrategy value); };
public Microsoft.AspNetCore.Components.WebView.UrlLoadingStrategy UrlLoadingStrategy { get; set; }
member this.UrlLoadingStrategy : Microsoft.AspNetCore.Components.WebView.UrlLoadingStrategy with get, set
Public Property UrlLoadingStrategy As UrlLoadingStrategy

属性值

适用于