AutomationElement.AutomationElementInformation.ProcessId 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此元素的进程标识符(ID)。
public:
property int ProcessId { int get(); };
public int ProcessId { get; }
member this.ProcessId : int
Public ReadOnly Property ProcessId As Integer
属性值
承载元素的进程 ID。 属性的默认值为 0。
注解
进程标识符(ID)由操作系统分配。 可以在任务管理器的“进程”选项卡的 PID 列中看到。
有关详细信息,请参阅 ProcessIdProperty。