ProcessThreadCollection.Contains Method (ProcessThread)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines whether the specified process thread exists in the collection.

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

public bool Contains(
	ProcessThread thread


Type: System.Diagnostics.ProcessThread

A ProcessThread instance that indicates the thread to find in this collection.

Return Value

Type: System.Boolean

true if the thread exists in the collection; otherwise, false.

A module is identified by its module name and its fully qualified file path.

.NET Framework
Available since 1.1
Return to top