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.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.