_Solution.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.
public:
property int Count { int get(); };
public:
property int Count { int get(); };
[System.Runtime.InteropServices.DispId(12)]
public int Count { [System.Runtime.InteropServices.DispId(12)] get; }
[<System.Runtime.InteropServices.DispId(12)>]
[<get: System.Runtime.InteropServices.DispId(12)>]
member this.Count : int
Public ReadOnly Property Count As Integer
Özellik Değeri
Koleksiyondaki nesne sayısı.
- Öznitelikler
Örnekler
Sub CountExample(ByVal dte As DTE2)
' Display all add-ins.
Dim i As Integer
Dim addIn As AddIn
Dim msg As String
For i = 1 To dte.AddIns.Count
addIn = dte.AddIns.Item(i)
msg &= " " & addIn.Name
If addIn.Connected Then
msg &= " (Loaded)" & vbCrLf
Else
msg &= " (Not Loaded)" & vbCrLf
End If
Next
MsgBox("Available add-ins:" & vbCrLf & vbCrLf & msg)
End Sub
public void CountExample(DTE2 dte)
{
// Display all add-ins.
AddIn addIn;
string msg = "";
for (int i = 1; i <= dte.AddIns.Count; ++i)
{
addIn = dte.AddIns.Item(i);
msg += " " + addIn.Name;
if (addIn.Connected)
msg += " (Loaded)\n";
else
msg += " (Not Loaded)\n";
}
MessageBox.Show("Available add-ins:\n\n" + msg);
}