Processes.Count Özellik

Tanım

Koleksiyondaki nesne sayısını gösteren bir değer alır Processes .

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

Int32

Koleksiyondaki nesne sayısını temsil eden bir tamsayı Process .

Öznitelikler

Örnekler

Aşağıdaki örnek Count özelliğinin nasıl kullanılacağını gösterir.

public static void Count(DTE dte)  
{  
    EnvDTE.Processes processes = dte.Debugger.LocalProcesses;  
    MessageBox.Show("Number of local processes: " +   
                    processes.Count, "Testing Processes Count Property");  
}  
Shared Sub Count(ByRef dte As EnvDTE.DTE)  
    Dim processes As EnvDTE.Processes = dte.Debugger.LocalProcesses  
    MessageBox.Show("Number of local processes: " + _  
                    processes.Count.ToString(), "Processes Test - Count Property")  
End Sub  

Şunlara uygulanır