WebProcessStatistics.ThreadCount Property

 

Gets the total count of the process threads.

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

Public ReadOnly Property ThreadCount As Integer

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 Function GetThreadCount() As String
    ' Get the thread count.
    Return String.Format( _
    "Thread count: {0}", _
    processStatistics.ThreadCount.ToString())
End Function 'GetThreadCount


.NET Framework
Available since 2.0
Return to top
Show: