DevicePolicyManager.IsCommonCriteriaModeEnabled(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳是否啟用了通用準則模式。
[Android.Runtime.Register("isCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;)Z", "GetIsCommonCriteriaModeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool IsCommonCriteriaModeEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("isCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;)Z", "GetIsCommonCriteriaModeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member IsCommonCriteriaModeEnabled : Android.Content.ComponentName -> bool
override this.IsCommonCriteriaModeEnabled : Android.Content.ComponentName -> bool
參數
- admin
- ComponentName
這個請求就是和這個 DeviceAdminReceiver 問題有關的。 如果呼叫者不是裝置管理員,則為 Null。
傳回
true 若啟用通用準則模式, false 否則。
- 屬性
備註
回傳是否啟用了通用準則模式。 組織擁有的受管理設定檔的裝置擁有者與設定檔擁有者可透過呼叫此方法與管理員 ComponentName查詢其自身的 Common Criteria 模式設定。 任何呼叫者都可以透過將參數傳遞nulladmin來獲得整個裝置的通用準則模式狀態。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。