Dela via


UserManager.UserName Property

Definition

Returns the user name of the context user.

public virtual string UserName { [Android.Runtime.Register("getUserName", "()Ljava/lang/String;", "GetGetUserNameHandler")] get; }
[<get: Android.Runtime.Register("getUserName", "()Ljava/lang/String;", "GetGetUserNameHandler")>]
member this.UserName : string

Property Value

the user name

Attributes

Remarks

Returns the user name of the context user. This call is only available to applications on the system image.

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

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