DevicePolicyManager.GetStorageEncryption(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此成员已弃用。
[Android.Runtime.Register("getStorageEncryption", "(Landroid/content/ComponentName;)Z", "GetGetStorageEncryption_Landroid_content_ComponentName_Handler")]
public virtual bool GetStorageEncryption(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getStorageEncryption", "(Landroid/content/ComponentName;)Z", "GetGetStorageEncryption_Landroid_content_ComponentName_Handler")>]
abstract member GetStorageEncryption : Android.Content.ComponentName -> bool
override this.GetStorageEncryption : Android.Content.ComponentName -> bool
参数
- admin
- ComponentName
DeviceAdminReceiver此请求与此请求相关联。 如果为 null,则将请求的加密设置作为所有活动管理员的聚合返回。
返回
如果管理员请求加密,则为 true;否则为 false。
- 属性
注解
此成员已弃用。 此方法仅返回由 #setStorageEncryption.. 设置的值。 它实际上并不反映存储加密状态。 用于该用途 #getStorageEncryptionStatus 。
由管理设备的应用程序调用,以确定安全存储的请求设置。
Java文档android.app.admin.DevicePolicyManager.getStorageEncryption(android.content.ComponentName)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。