語言

DevicePolicyManager.ClearProfileOwner(ComponentName) 方法

定義

清除活躍帳號擁有者。

[Android.Runtime.Register("clearProfileOwner", "(Landroid/content/ComponentName;)V", "GetClearProfileOwner_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual void ClearProfileOwner(Android.Content.ComponentName admin);
[<Android.Runtime.Register("clearProfileOwner", "(Landroid/content/ComponentName;)V", "GetClearProfileOwner_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member ClearProfileOwner : Android.Content.ComponentName -> unit
override this.ClearProfileOwner : Android.Content.ComponentName -> unit

參數

admin
ComponentName

作為設定檔擁有者,該元件需移除。

屬性

備註

清除活躍帳號擁有者。 呼叫者必須是該使用者的個人檔案擁有者,否則會拋出安全例外。 此方法對受管理的個人資料擁有者無法使用。

雖然部分由檔案持有人先前設定的政策會透過此方法獲得批准,但這是盡力而為的過程,且在檔案持有人通過後,其他政策仍會保留。

此會員已被棄用。 此方法預計僅用於測試目的。 設定檔擁有者在撥打電話後將失去對使用者及其資料的控制權。 為了保護該使用者身上殘留的任何敏感資料,建議設定檔擁有者刪除該資料,而非使用此方法。 參見 #wipeData(int)。

Java 文件 android.app.admin.DevicePolicyManager.clearProfileOwner(android.content.ComponentName)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於