DevicePolicyManager.GetAutoTimeZoneEnabled(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果在设备上启用了自动时区,则返回 true。
[Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool GetAutoTimeZoneEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool
override this.GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool
参数
- admin
- ComponentName
DeviceAdminReceiver此请求与此请求相关联。 如果调用方不是设备管理员,则为 Null。
返回
如果在设备上启用了自动时区,则为 true。
- 特性
注解
如果在设备上启用了自动时区,则返回 true。
Java文档android.app.admin.DevicePolicyManager.getAutoTimeZoneEnabled(android.content.ComponentName)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。