Freigeben über


ProcessThreadCollection.IndexOf-Methode

Stellt die Position eines angegebenen Threads in der Auflistung zur Verfügung.

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

Syntax

'Declaration
Public Function IndexOf ( _
    thread As ProcessThread _
) As Integer
'Usage
Dim instance As ProcessThreadCollection
Dim thread As ProcessThread
Dim returnValue As Integer

returnValue = instance.IndexOf(thread)
public int IndexOf (
    ProcessThread thread
)
public:
int IndexOf (
    ProcessThread^ thread
)
public int IndexOf (
    ProcessThread thread
)
public function IndexOf (
    thread : ProcessThread
) : int

Parameter

Rückgabewert

Der nullbasierte Index, der die Position des Threads in der ProcessThreadCollection definiert.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

ProcessThreadCollection-Klasse
ProcessThreadCollection-Member
System.Diagnostics-Namespace