Číst v angličtině

Sdílet prostřednictvím


Threads.Count Property

Definition

Gets a value indicating the number of objects in the Threads collection.

public:
 property int Count { int get(); };

Property Value

An integer value indicating the number of objects in the Threads collection.

Attributes

Examples

The following example demonstrates how to use the Count property.

public static void ThreadsCount(DTE dte)  
{  
    EnvDTE.Threads threads = dte.Debugger.CurrentProgram.Threads;  
    EnvDTE.StackFrames stackFrames = dte.Debugger.CurrentThread.StackFrames;  
    MessageBox.Show("\nThere are  " + threads.Count +   
                    " threads running.\n", "Threads Count Property Test" );  
}  

Applies to

Produkt Verze
Visual Studio SDK 2015, 2017, 2019, 2022