语言

WebSettings.AllowFileAccess 属性

定义

获取此 WebView 是否支持文件访问。

public abstract bool AllowFileAccess { [Android.Runtime.Register("getAllowFileAccess", "()Z", "GetGetAllowFileAccessHandler")] get; [Android.Runtime.Register("setAllowFileAccess", "(Z)V", "GetSetAllowFileAccess_ZHandler")] set; }
[<get: Android.Runtime.Register("getAllowFileAccess", "()Z", "GetGetAllowFileAccessHandler")>]
[<set: Android.Runtime.Register("setAllowFileAccess", "(Z)V", "GetSetAllowFileAccess_ZHandler")>]
member this.AllowFileAccess : bool with get, set

属性值

如果为 WebView 启用了文件访问,则为 True;否则为 false。

特性

注解

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

适用于

另请参阅