Export (0) Print
Expand All

Property Object

Visual Studio .NET 2003

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

DTE

   Properties

      Property

[Visual Basic .NET]
Public Interface Property
    Inherits IDispatch
[Visual Basic 6]
Class Property
[C++]
interface Property : IDispatch
[C#]
public interface Property : IDispatch
[JScript .NET]
public interface Property extends IDispatch

Requirements

Namespace: EnvDTE

File: dte.olb

Example

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

Properties, Methods, and Events | Properties Collection

Show:
© 2014 Microsoft