Share via


Imports.Count 속성

컬렉션에 있는 개체의 수를 나타내는 값을 가져옵니다. 읽기 전용입니다.

네임스페이스:  VSLangProj
어셈블리:  VSLangProj(VSLangProj.dll)

구문

‘선언
ReadOnly Property Count As Integer
int Count { get; }
property int Count {
    int get ();
}
abstract Count : int with get
function get Count () : int

속성 값

형식: 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

.NET Framework 보안

참고 항목

참조

Imports 인터페이스

VSLangProj 네임스페이스