AppOpsManagerMode 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举多个类型返回的值。
public enum AppOpsManagerMode
type AppOpsManagerMode =
- 继承
-
AppOpsManagerMode
字段
| 名称 | 值 | 说明 |
|---|---|---|
| Allowed | 0 | checkOp(String, int, String), noteOp(String, int, String), startOp(String, int, String): 允许给定调用方执行给定的操作。 |
| Ignored | 1 | checkOp(String, int, String), noteOp(String, int, String), startOp(String, int, String): 不允许给定调用方执行给定的操作,并且此尝试应无提示失败(不应导致应用崩溃)。 |
| Errored | 2 | checkOpNoThrow(String, int, String), noteOpNoThrow(String, int, String), startOpNoThrow(String, int, String): 给定调用方不允许执行给定的操作,并且此尝试应导致其出现致命错误,通常是 SecurityException。 |
| Default | 3 | checkOp(String, int, String), noteOp(String, int, String), startOp(String, int, String): 给定调用方应使用其默认安全检查。 |
| Foreground | 4 | 特殊模式,表示“仅当应用处于前台时允许”。这不会从 unsafeCheckOp(String, int, String), noteOp(String, int, String), startOp(String, int, String) 返回。 |
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。