DevicePolicyManager.IsSecurityLoggingEnabled(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回管理员是否启用安全日志记录。
[Android.Runtime.Register("isSecurityLoggingEnabled", "(Landroid/content/ComponentName;)Z", "GetIsSecurityLoggingEnabled_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual bool IsSecurityLoggingEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("isSecurityLoggingEnabled", "(Landroid/content/ComponentName;)Z", "GetIsSecurityLoggingEnabled_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member IsSecurityLoggingEnabled : Android.Content.ComponentName -> bool
override this.IsSecurityLoggingEnabled : Android.Content.ComponentName -> bool
参数
- admin
- ComponentName
此请求与哪个设备管理员相关联。 如果调用方不是设备管理员,则为 Null
返回
- 特性
注解
返回管理员是否启用安全日志记录。
只能由设备所有者或组织拥有的托管配置文件的配置文件所有者调用,否则将引发一个 SecurityException 。
Java文档android.app.admin.DevicePolicyManager.isSecurityLoggingEnabled(android.content.ComponentName)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。