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
使用權限
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。