References::Count Property

 

Gets a value indicating the number of objects in the collection. Read-only.

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

property int Count {
	int get();
}

Property Value

Type: System::Int32

The number of objects in the collection.

' 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
Return to top
Show: