Freigeben über


WebProcessStatistics.ThreadCount Eigenschaft

Definition

Ruft die Gesamtanzahl der Prozessthreads ab.

public:
 property int ThreadCount { int get(); };
public int ThreadCount { get; }
member this.ThreadCount : int
Public ReadOnly Property ThreadCount As Integer

Eigenschaftswert

Int32

Die Gesamtanzahl der Prozessthreads.

Beispiele

Im folgenden Codebeispiel wird gezeigt, wie Der ThreadCount Wert abgerufen wird.

public string GetThreadCount()
{
    // Get the thread count.
    return (string.Format(
        "Thread count: {0}",
        processStatistics.ThreadCount.ToString()));
}
Public Function GetThreadCount() As String
    ' Get the thread count.
    Return String.Format( _
    "Thread count: {0}", _
    processStatistics.ThreadCount.ToString())
End Function 'GetThreadCount

Hinweise

Die Anzahl bezieht sich auf die verwalteten und nicht verwalteten Threads.

Gilt für