语言

WebSettings.AllowContentAccess 属性

定义

获取此 WebView 是否支持内容 URL 访问。

public abstract bool AllowContentAccess { [Android.Runtime.Register("getAllowContentAccess", "()Z", "GetGetAllowContentAccessHandler")] get; [Android.Runtime.Register("setAllowContentAccess", "(Z)V", "GetSetAllowContentAccess_ZHandler")] set; }
[<get: Android.Runtime.Register("getAllowContentAccess", "()Z", "GetGetAllowContentAccessHandler")>]
[<set: Android.Runtime.Register("setAllowContentAccess", "(Z)V", "GetSetAllowContentAccess_ZHandler")>]
member this.AllowContentAccess : bool with get, set

属性值

如此 如果 WebView 可以加载内容 URL;否则为 false。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅