UserManager.GetUserForSerialNumber(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.
Return the user associated with a serial number previously
returned by #getSerialNumberForUser(UserHandle)
.
[Android.Runtime.Register("getUserForSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForSerialNumber_JHandler")]
public virtual Android.OS.UserHandle? GetUserForSerialNumber (long serialNumber);
[<Android.Runtime.Register("getUserForSerialNumber", "(J)Landroid/os/UserHandle;", "GetGetUserForSerialNumber_JHandler")>]
abstract member GetUserForSerialNumber : int64 -> Android.OS.UserHandle
override this.GetUserForSerialNumber : int64 -> Android.OS.UserHandle
Parameters
- serialNumber
- Int64
The serial number of the user that is being retrieved.
Returns
Return the user associated with the serial number, or null if there is not one.
- Attributes
Remarks
Return the user associated with a serial number previously returned by #getSerialNumberForUser(UserHandle)
.
Java documentation for android.os.UserManager.getUserForSerialNumber(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.