Compartilhar via


Process.GetUidForName(String) Method

Definition

Returns the UID assigned to a particular user name, or -1 if there is none.

[Android.Runtime.Register("getUidForName", "(Ljava/lang/String;)I", "")]
public static int GetUidForName (string? name);
[<Android.Runtime.Register("getUidForName", "(Ljava/lang/String;)I", "")>]
static member GetUidForName : string -> int

Parameters

name
String

Returns

Attributes

Remarks

Returns the UID assigned to a particular user name, or -1 if there is none. If the given string consists of only numbers, it is converted directly to a uid.

Java documentation for android.os.Process.getUidForName(java.lang.String).

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