Partager via


Property Interface

Definition

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

public interface class Property
public interface class Property
__interface Property
[System.Runtime.InteropServices.Guid("7B988E06-2581-485E-9322-04881E0600D0")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Property
[<System.Runtime.InteropServices.Guid("7B988E06-2581-485E-9322-04881E0600D0")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type Property = interface
Public Interface Property
Attributes

Examples

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  

Properties

Application

Microsoft Internal Use Only.

Collection

Gets the Collection containing the Property object supporting this property.

DTE

Gets the top-level extensibility object.

IndexedValue[Object, Object, Object, Object]

Returns one element of a list.

Name

Gets the name of the object.

NumIndices

Gets the number of indices required to access the value.

Object

Sets or gets the object supporting the Property object.

Parent

Microsoft Internal Use Only.

Value

Gets or sets the value of the property returned by the Property object.

Methods

let_Value(Object)

Setter function to set properties values.

Applies to