Share via


Property Interface

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

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

Syntax

'Declaration
<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

The Property type exposes the following members.

Properties

  Name Description
Public property Application Infrastructure. Microsoft Internal Use Only.
Public property Collection Gets the Collection containing the Property object supporting this property.
Public property DTE Gets the top-level extensibility object.
Public property IndexedValue Returns one element of a list.
Public property Name Gets the name of the object.
Public property NumIndices Gets the number of indices required to access the value.
Public property Object Sets or gets the object supporting the Property object.
Public property Parent Infrastructure. Microsoft Internal Use Only.
Public property Value Gets or sets the value of the property returned by the Property object.

Top

Methods

  Name Description
Public method let_Value Setter function to set properties values.

Top

Examples

' 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

See Also

Reference

EnvDTE Namespace