Share via

AutomationElement.AutomationElementInformation.ProcessId Property


Gets the process identifier (ID) of this element.

 property int ProcessId { int get(); };
public int ProcessId { get; }
member this.ProcessId : int
Public ReadOnly Property ProcessId As Integer

Property Value

The ID of the process that hosts the element. The default value for the property is 0.


The process identifier (ID) is assigned by the operating system. It can be seen in the PID column of the Processes tab in Task Manager.

For more information, see ProcessIdProperty.

Applies to