DeviceAdminReceiver.OnTransferAffiliatedProfileOwnershipComplete 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當裝置擁有者其中一個關聯帳戶的所有權被轉移時,會被點名。
[Android.Runtime.Register("onTransferAffiliatedProfileOwnershipComplete", "(Landroid/content/Context;Landroid/os/UserHandle;)V", "GetOnTransferAffiliatedProfileOwnershipComplete_Landroid_content_Context_Landroid_os_UserHandle_Handler", ApiSince=28)]
public virtual void OnTransferAffiliatedProfileOwnershipComplete(Android.Content.Context context, Android.OS.UserHandle user);
[<Android.Runtime.Register("onTransferAffiliatedProfileOwnershipComplete", "(Landroid/content/Context;Landroid/os/UserHandle;)V", "GetOnTransferAffiliatedProfileOwnershipComplete_Landroid_content_Context_Landroid_os_UserHandle_Handler", ApiSince=28)>]
abstract member OnTransferAffiliatedProfileOwnershipComplete : Android.Content.Context * Android.OS.UserHandle -> unit
override this.OnTransferAffiliatedProfileOwnershipComplete : Android.Content.Context * Android.OS.UserHandle -> unit
參數
- context
- Context
運行上下文如下 #onReceive
- user
- UserHandle
關聯用戶的UserHandle
- 屬性
備註
當裝置擁有者其中一個關聯帳戶的所有權被轉移時,會被點名。
這可用於在完全管理的裝置上使用工作設定檔時,轉移裝置與設定檔所有權。 流程大致如下:ol>li 轉移設定檔所有權</li><>li 裝置擁有者會收到這個回<調通知/li><li>轉移裝置所有權</li><li>設定檔和裝置所有權都已轉移</li<>/ol><<>
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。