Gets the set of threads that are running in the associated process.
| C# | Visual Basic |
public static ReadOnlyCollection<ProcessThread> GetThreads( Process p )
Public Shared Function GetThreads ( _ p As Process _ ) As ReadOnlyCollection(Of ProcessThread)
- p (Process)
- The Process.
An array of type ProcessThread representing the operating system threads currently running in the associated process.