Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ProcessId Property

TraceEventCache.ProcessId Property

Gets the unique identifier of the current process.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

public int ProcessId { get; }

Property Value

Type: System.Int32
The system-generated unique identifier of the current process.

Until the process terminates, the process identifier uniquely identifies the process throughout the system.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Show:
© 2015 Microsoft