共用方式為


Imports.Count 屬性

更新:2007 年 11 月

取得指示集合中物件數目的值。唯讀。

命名空間:  VSLangProj
組件:  VSLangProj (在 VSLangProj.dll 中)

語法

ReadOnly Property Count As Integer

Dim instance As Imports
Dim value As Integer

value = instance.Count
int Count { get; }
property int Count {
    int get ();
}
function get Count () : int

屬性值

型別:System.Int32

集合中的物件數目。

範例

' 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 命名空間