语言

MockContext.IsDeviceProtectedStorage 属性

定义

引发而不是 UnsupportedOperationException 提供存储保护状态。 重写此属性以用于测试。

public override bool IsDeviceProtectedStorage { [Android.Runtime.Register("isDeviceProtectedStorage", "()Z", "GetIsDeviceProtectedStorageHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isDeviceProtectedStorage", "()Z", "GetIsDeviceProtectedStorageHandler", ApiSince=24)>]
member this.IsDeviceProtectedStorage : bool

属性值

默认模拟未提供任何值。 它的 getter 引发 UnsupportedOperationException;重写此属性以提供存储保护状态。

特性

注解

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

适用于