RestrictionsManager.ApplicationRestrictions 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回适用于此应用程序的任何可用应用程序特定限制集。
public virtual Android.OS.Bundle? ApplicationRestrictions { [Android.Runtime.Register("getApplicationRestrictions", "()Landroid/os/Bundle;", "GetGetApplicationRestrictionsHandler")] get; }
[<get: Android.Runtime.Register("getApplicationRestrictions", "()Landroid/os/Bundle;", "GetGetApplicationRestrictionsHandler")>]
member this.ApplicationRestrictions : Android.OS.Bundle
属性值
作为捆绑包的应用程序限制。 如果没有限制,则返回 null。
<p>Starting from Android version <code data-dev-comment-type="c">android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE</code>,
it is possible for there to be multiple managing apps on the device with the ability to set
restrictions, e.g. a Device Policy Controller (DPC) and a Supervision admin.
This API will only return the restrictions set by the DPCs. To retrieve restrictions
set by all managing apps, use
<code data-dev-comment-type="c">android.content.RestrictionsManager#getApplicationRestrictionsPerAdmin</code> instead.
- 属性
注解
返回适用于此应用程序的任何可用应用程序特定限制集。
适用于 . 的 android.content.RestrictionsManager.getApplicationRestrictions()
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。