共用方式為


UserManager.UserCount Property

Definition

Return the number of users currently created on the device.

public virtual int UserCount { [Android.Runtime.Register("getUserCount", "()I", "GetGetUserCountHandler")] get; }
[<get: Android.Runtime.Register("getUserCount", "()I", "GetGetUserCountHandler")>]
member this.UserCount : int

Property Value

Attributes

Remarks

Return the number of users currently created on the device.

Java documentation for android.os.UserManager.getUserCount().

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.

Applies to