Language

Os.Chown(String, Int32, Int32) Method

Definition

See chown(2).

[Android.Runtime.Register("chown", "(Ljava/lang/String;II)V", "")]
public static void Chown(string? path, int uid, int gid);
[<Android.Runtime.Register("chown", "(Ljava/lang/String;II)V", "")>]
static member Chown : string * int * int -> unit

Parameters

path
String

The path of the file whose owner and group are changed.

uid
Int32

The new owner user ID, or -1 to keep the current owner.

gid
Int32

The new group ID, or -1 to keep the current group.

Attributes

Exceptions

Remarks

See chown(2).

Java documentation for android.system.Os.chown(java.lang.String, int, int).

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