语言

DevicePolicyManager.IsSecurityLoggingEnabled(ComponentName) 方法

定义

返回管理员是否启用安全日志记录。

[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)。

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

适用于