Condividi tramite


Proprietà Imports.Count

Ottiene un valore che indica il numero di oggetti nell'insieme. Sola lettura.

Spazio dei nomi:  VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

Sintassi

'Dichiarazione
ReadOnly Property Count As Integer
    Get
int Count { get; }
property int Count {
    int get ();
}
abstract Count : int
function get Count () : int

Valore proprietà

Tipo: System.Int32
Numero di oggetti dell'insieme.

Esempi

' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Imports Interfaccia

Spazio dei nomi VSLangProj