Proprietà Imports.Count

Aggiornamento: novembre 2007

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

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

Sintassi

ReadOnly Property Count As Integer

Dim instance As Imports
Dim value As Integer

value = instance.Count
int Count { get; }
property int Count {
    int get ();
}
function get Count () : int

Valore proprietà

Tipo: System.Int32

Il numero di oggetti nell'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

Autorizzazioni

Vedere anche

Riferimenti

Imports Interfaccia

Membri Imports

Spazio dei nomi VSLangProj