Condividi tramite


WebProcessStatistics.ThreadCount Proprietà

Definizione

Ottiene il conteggio totale dei thread di processo.

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

Valore della proprietà

Int32

Conteggio totale dei thread di processo.

Esempio

Nell'esempio di codice seguente viene illustrato come ottenere il ThreadCount valore .

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

Commenti

Il conteggio fa riferimento ai thread gestiti e non gestiti.

Si applica a