Property الواجهة

يمثل واحد الخاصية في مجموعة عامة من خصائص لكائن معطى.

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

بناء الجملة

'إقرار
<GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0")> _
Public Interface Property
[GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0")]
public interface Property
[GuidAttribute(L"7B988E06-2581-485E-9322-04881E0600D0")]
public interface class Property
[<GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0")>]
type Property =  interface end
public interface Property

أمثلة

' Visual Studio macro.
Sub PropertyExample()
   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

راجع أيضًَا

المرجع

Property الأعضاء

EnvDTE مساحة الاسم