Property 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示给定对象的属性的一般集合中的一个属性。
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
- 属性
示例
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
属性
| Application |
仅限 Microsoft 内部使用。 |
| Collection |
获取 Collection 包含 Property 支持此属性的对象的。 |
| DTE |
获取顶级扩展性对象。 |
| IndexedValue[Object, Object, Object, Object] |
返回列表的一个元素。 |
| Name |
获取对象的名称。 |
| NumIndices |
获取访问值所需的索引数目。 |
| Object |
设置或获取支持对象的对象 Property 。 |
| Parent |
仅限 Microsoft 内部使用。 |
| Value |
获取或设置由对象返回的属性的值 Property 。 |
方法
| let_Value(Object) |
用于设置属性值的 Setter 函数。 |