Language

Process.Pid Method

Definition

Returns the native process ID of the process.

[Android.Runtime.Register("pid", "()J", "GetPidHandler", ApiSince=37)]
public virtual long Pid();
[<Android.Runtime.Register("pid", "()J", "GetPidHandler", ApiSince=37)>]
abstract member Pid : unit -> int64
override this.Pid : unit -> int64

Returns

the native process id of the process

Attributes

Remarks

Returns the native process ID of the process. The native process ID is an identification number that the operating system assigns to the process.

The Android base implementation throws UnsupportedOperationException. A process implementation must override this method to supply a process ID.

Java reference for java.lang.Process.pid.

Applies to