语言

ProcessThreadCollection.IndexOf(ProcessThread) 方法

定义

提供集合中指定线程的位置。

public:
 int IndexOf(System::Diagnostics::ProcessThread ^ thread);
public int IndexOf(System.Diagnostics.ProcessThread thread);
member this.IndexOf : System.Diagnostics.ProcessThread -> int
Public Function IndexOf (thread As ProcessThread) As Integer

参数

thread
ProcessThread

ProcessThread检索其索引的索引。

返回

定义线程在内 ProcessThreadCollection的位置的从零开始的索引。

适用于