TraceEventCache.ProcessId Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the unique identifier of the current process.

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

member ProcessId : int with 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.


for the ability to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

.NET Framework
Available since 2.0
Return to top