Threads.Count Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Koleksiyondaki nesne sayısını gösteren bir değer alır Threads .
public:
property int Count { int get(); };
public:
property int Count { int get(); };
[System.Runtime.InteropServices.DispId(3)]
public int Count { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.Count : int
Public ReadOnly Property Count As Integer
Özellik Değeri
Koleksiyondaki nesne sayısını gösteren bir tamsayı değeri Threads .
- Öznitelikler
Örnekler
Aşağıdaki örnek, özelliğinin nasıl kullanılacağını gösterir Count .
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" );
}
Shared Sub ThreadsCount(ByRef dte As EnvDTE.DTE)
Dim threads As EnvDTE.Threads = dte.Debugger.CurrentProgram.Threads
MessageBox.Show("There are " + threads.Count.ToString() + _
" threads running", "Threads Test - Count Property")
End Sub