مشاركة عبر


References.Count الخاصية

يحصل على القيمة للإشارة إلى رقم من الكائنات في المجموعة. للقراءة فقط

مساحة الاسم:  VSLangProj
التجميع:  VSLangProj (في VSLangProj.dll)

بناء الجملة

'إقرار
ReadOnly Property Count As Integer
    Get
int Count { get; }
property int Count {
    int get ();
}
abstract Count : int
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

أمن NET Framework.

راجع أيضًَا

المرجع

References واجهة

References الأعضاء

VSLangProj مساحة الاسم