BackupManager.GetUserForAncestralSerialNumber(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a UserHandle for the user that has ancestralSerialNumber as the
serial number of the its ancestral work profile or null if there is none.
[Android.Runtime.Register("getUserForAncestralSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForAncestralSerialNumber_JHandler", ApiSince=29)]
public virtual Android.OS.UserHandle? GetUserForAncestralSerialNumber(long ancestralSerialNumber);
[<Android.Runtime.Register("getUserForAncestralSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForAncestralSerialNumber_JHandler", ApiSince=29)>]
abstract member GetUserForAncestralSerialNumber : int64 -> Android.OS.UserHandle
override this.GetUserForAncestralSerialNumber : int64 -> Android.OS.UserHandle
Parameters
- ancestralSerialNumber
- Int64
The serial number of the work profile from which a profile on this device was restored.
Returns
The user handle for the profile restored from the specified ancestral work profile, or null if no matching profile exists.
- Attributes
Remarks
Returns a UserHandle for the user that has ancestralSerialNumber as the serial number of the its ancestral work profile or null if there is none.
The ancestral serial number will have a corresponding UserHandle if the device has a work profile that was restored from another work profile with serial number ancestralSerialNumber.
Java documentation for android.app.backup.BackupManager.getUserForAncestralSerialNumber(long).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.