Partage via


WebProcessStatistics.ThreadCount Propriété

Définition

Obtient le nombre total de threads du processus.

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

Valeur de propriété

Int32

Nombre total de threads du processus.

Exemples

L’exemple de code suivant montre comment obtenir la ThreadCount valeur.

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

Remarques

Le nombre fait référence aux threads managés et non managés.

S’applique à