Share via


References.Count – vlastnost

Získá hodnotu určující počet objektů v kolekci.Jen pro čtení

Obor názvů:  VSLangProj
Sestavení:  VSLangProj (v VSLangProj.dll)

Syntaxe

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

Hodnota vlastnosti

Typ: Int32
Počet objektů v kolekci.

Příklady

' 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

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

References Rozhraní

VSLangProj – obor názvů