WebProcessStatistics.ThreadCount Eigenschap

Definitie

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.

Van toepassing op