Imports.Count プロパティ
コレクション内のオブジェクトの数を示す値を取得します。読み取り専用です。
名前空間: VSLangProj
アセンブリ: VSLangProj (vslangproj.dll 内)
構文
'宣言
'使用
プロパティ値
コレクション内のオブジェクトの数を返します。
使用例
' 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