Compartir a través de


Imports.Count (Propiedad)

Obtiene un valor que indica el número de objetos de la colección. Solo lectura.

Espacio de nombres:  VSLangProj
Ensamblado:  VSLangProj (en VSLangProj.dll)

Sintaxis

'Declaración
ReadOnly Property Count As Integer
int Count { get; }
property int Count {
    int get ();
}
abstract Count : int with get
function get Count () : int

Valor de propiedad

Tipo: Int32
Número de objetos de la colección.

Ejemplos

' 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

Seguridad de .NET Framework

Vea también

Referencia

Imports Interfaz

VSLangProj (Espacio de nombres)