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 Transfer profile ownership</li>><The device owner gets notified with this callback</li<>li>transfer device ownership</li><li>Both profile and device ownerships have been transfered</li<>/ol><<>
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。