다음을 통해 공유


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 네임스페이스