References.Count プロパティ

更新 : 2007 年 11 月

コレクション内のオブジェクトの数を示す値を取得します。読み取り専用です。

名前空間 :  VSLangProj
アセンブリ :  VSLangProj (VSLangProj.dll 内)

構文

'宣言
ReadOnly Property Count As Integer
'使用
Dim instance As References
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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

References インターフェイス

References メンバ

VSLangProj 名前空間