AppOpsManagerMode 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
列舉由多種類型回傳的值。
public enum AppOpsManagerMode
type AppOpsManagerMode =
- 繼承
-
AppOpsManagerMode
欄位
| 名稱 | 值 | Description |
|---|---|---|
| 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) 不會回傳此訊息。 |
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。