WebProcessStatistics.ThreadCount Property

 

Gets the total count of the process threads.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public int ThreadCount { get; }

Property Value

Type: System.Int32

The total count of the process threads.

The count refers to the managed and unmanaged threads.

The following code example shows how to get the ThreadCount value.

public string GetThreadCount()
{
    // Get the thread count.
    return (string.Format(
        "Thread count: {0}",
        processStatistics.ThreadCount.ToString()));
}

.NET Framework
Available since 2.0
Return to top
Show: