WebProcessStatistics.ThreadCount Свойство

Определение

Получает текущее число потоков процесса.

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

Значение свойства

Int32

Текущее число потоков процесса.

Примеры

В следующем примере кода показано, как получить ThreadCount значение.

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

Комментарии

Число ссылается на управляемые и неуправляемые потоки.

Применяется к