Properties الواجهة
يحتوي على الجميع الخصائص التي تم تضمينها في مجموعة عامة من خصائص كائن معطى.
مساحة الاسم: EnvDTE
التجميع: EnvDTE (في EnvDTE.dll)
بناء الجملة
'إقرار
<GuidAttribute("4CC8CCF5-A926-4646-B17F-B4940CAED472")> _
Public Interface Properties _
Inherits IEnumerable
[GuidAttribute("4CC8CCF5-A926-4646-B17F-B4940CAED472")]
public interface Properties : IEnumerable
[GuidAttribute(L"4CC8CCF5-A926-4646-B17F-B4940CAED472")]
public interface class Properties : IEnumerable
[<GuidAttribute("4CC8CCF5-A926-4646-B17F-B4940CAED472")>]
type Properties =
interface
interface IEnumerable
end
public interface Properties extends IEnumerable
ملاحظات
Propertiesيحتوي على خصائص أنواع مختلفة. يمكن أن يتضمن خصائص مشروع، وخصائص العنصر، وخصائص الحل، و هكذا. هو المستخدمة في خصائص الواجهات الأخرى، مثل Properties، لاحتواء lهوts الخصائص الخاصة بها.
في حالة من Properties، Propertiesيمثل الجميع الفئات المتاحة و الفئات الفرعية التي يحتوي عليها صندوق الحوار خيارات أدوات . لمزيد من المعلومات، راجع Properties.
Propertiesهو أيضا تستخدم لتمثيل أشياء مثل الخصائص للمشاريع، والخصائص للعناصر الموجودة في مشاريع، خصائص تكوينات مشروع، وهكذا دواليك. لمزيد من المعلومات، راجع الوصول إلى نوع مشروع مشروع محددة, مشروع العنصر ، تكوين خصائص.
Propertiesلا يعتمد مجموعة اكتمال الجملة، مثل خاصية الأعضاء الكائنات. ومع ذلك، فإنه يوفر طريقة سهلة لعرض العديد من الخصائص وتكرار عبرها.
أمثلة
Sub PropertiesExample()
' Demonstrates how to programmatically access Tools Options
' properties using the Properties collection.
Dim Props As Properties
Dim PropObj As [Property]
Dim NameValPair As String
Props = DTE.Properties("Environment", "General")
MsgBox("Tools – Options – Environment – General Properties Count = _
& Props.Count())
For Each PropObj In Props
NameValPair = NameValPair & (PropObj.Name & "Value = " & _
PropObj.Value & microsoft.VisualBasic.ControlChars.CrLf)
Next
MsgBox(NameValPair)
End Sub