Export (0) Print
Expand All

ProcessThreadCollection.IndexOf Method

Provides the location of a specified thread within the collection.

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

public int IndexOf(
	ProcessThread thread


Type: System.Diagnostics.ProcessThread

The ProcessThread whose index is retrieved.

Return Value

Type: System.Int32
The zero-based index that defines the location of the thread within the ProcessThreadCollection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft