ProcessThreadCollection.IndexOf Method

Definition

Overloads

IndexOf(ProcessThread)

Provides the location of a specified thread within the collection.

IndexOf(ProcessThread, Int32)
IndexOf(ProcessThread, Int32, Int32)

IndexOf(ProcessThread)

Provides the location of a specified thread within the collection.

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

Parameters

thread
ProcessThread

The ProcessThread whose index is retrieved.

Returns

The zero-based index that defines the location of the thread within the ProcessThreadCollection.

IndexOf(ProcessThread, Int32)

Warning

This API is now obsolete.

public:
 int IndexOf(System::Diagnostics::ProcessThread ^ item, int index);
[System.Obsolete("This API is no longer available", true)]
public int IndexOf (System.Diagnostics.ProcessThread item, int index);
member this.IndexOf : System.Diagnostics.ProcessThread * int -> int
Public Function IndexOf (item As ProcessThread, index As Integer) As Integer

Parameters

index
Int32

Returns

Attributes

IndexOf(ProcessThread, Int32, Int32)

Warning

This API is now obsolete.

public:
 int IndexOf(System::Diagnostics::ProcessThread ^ item, int index, int count);
[System.Obsolete("This API is no longer available", true)]
public int IndexOf (System.Diagnostics.ProcessThread item, int index, int count);
member this.IndexOf : System.Diagnostics.ProcessThread * int * int -> int
Public Function IndexOf (item As ProcessThread, index As Integer, count As Integer) As Integer

Parameters

index
Int32
count
Int32

Returns

Attributes

Applies to