Process.Pid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.