Imports.Count-Eigenschaft

Ruft einen Wert ab, der die Anzahl der in der Auflistung enthaltenen Objekte angibt. Schreibgeschützt.

Namespace: VSLangProj
Assembly: VSLangProj (in vslangproj.dll)

Syntax

'Declaration
'Usage

Eigenschaftenwert

Die Anzahl der Objekte in der Auflistung.

Beispiel

' Macro Editor
' This method creates string with a list of all the references
' by index in a References collection.
Imports VSLangProj
Function ListReferences(ByVal refs As References) _
   As String
   Dim i As Integer
   Dim list As String = ""
   For i = 1 To refs.Count
      list &= i.ToString() & " " & refs.Item(i).Identity & " " & _
         ControlChars.CrLf 
   Next
   Return list
End Function

Siehe auch

Referenz

Imports-Schnittstelle
Imports-Member
VSLangProj-Namespace