DevicePolicyManager.RetrieveSecurityLogs(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由裝置擁有者或組織擁有的受管理設定檔的設定檔擁有者呼叫,以取得自裝置開機後最後一次呼叫此 API 以來所有新的安全日誌條目。
[Android.Runtime.Register("retrieveSecurityLogs", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetRetrieveSecurityLogs_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>? RetrieveSecurityLogs(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("retrieveSecurityLogs", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetRetrieveSecurityLogs_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member RetrieveSecurityLogs : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>
override this.RetrieveSecurityLogs : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>
參數
- admin
- ComponentName
這個請求是與哪個裝置管理員相關聯,或者 null 是被委託的應用程式呼叫?
傳回
新的安全日誌批次,是一份清單 SecurityEvent,或 null 是速率超過或日誌目前被停用時。
- 屬性
備註
由裝置擁有者或組織擁有的受管理設定檔的設定檔擁有者呼叫,以取得自裝置開機後最後一次呼叫此 API 以來所有新的安全日誌條目。
日誌存取有速率限制,只有在管理員收到通知 DeviceAdminReceiver#onSecurityLogsAvailable後才會回傳新的日誌。
當裝置擁有者呼叫時,如果該裝置上有其他使用者或設定檔,必須與該裝置有關聯。 否則 SecurityException 會被丟棄。 參見 #isAffiliatedUser。
Java 文件 android.app.admin.DevicePolicyManager.retrieveSecurityLogs(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。