這個介面提供允許取得和設定屬性的函式。
語法
IDebugPropertyField : IDebugContainerField
實作者的注意事項
符號提供者會在實作 IDebugContainerField 的相同對象上實作這個介面。 這個介面是一種特製化,可支援類別上屬性的概念。
呼叫端注意事項
如果 GetKind 方法傳回 FIELD_KIND_PROP,請使用 QueryInterface 從 IDebugContainerField 介面取得這個介面。
依照 Vtable 順序的方法
除了 IDebugField 和 IDebugContainerField 介面上的方法之外,這個介面還實作下列方法:
| 方法 | 描述 |
|---|---|
| GetPropertyGetter | 取得取得 屬性的方法。 |
| GetPropertySetter | 取得設定 屬性的方法。 |
備註
屬性是 Managed 程式代碼概念,表示被視為變數的方法。 屬性不存在於 Unmanaged C++ 中。
需求
標頭:sh.h
命名空間:Microsoft.VisualStudio.Debugger.Interop
元件:Microsoft.VisualStudio.Debugger.Interop.dll