WebProcessStatistics.ThreadCount Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u het totale aantal procesthreads op.
public:
property int ThreadCount { int get(); };
public int ThreadCount { get; }
member this.ThreadCount : int
Public ReadOnly Property ThreadCount As Integer
Waarde van eigenschap
Het totale aantal procesthreads.
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u de ThreadCount waarde kunt ophalen.
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
Opmerkingen
Het aantal verwijst naar de beheerde en onbeheerde threads.