Property Interface
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Property Interface

Represents one property in a generic collection of properties for a given object.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

[GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0")] 
public interface Property
/** @attribute GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0") */ 
public interface Property
GuidAttribute("7B988E06-2581-485E-9322-04881E0600D0") 
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
Show:
© 2016 Microsoft