共用方式為


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

請參閱

參考

Imports 介面
Imports 成員
VSLangProj 命名空間