判斷此欄位的自定義屬性是否存在,如果存在,則會傳回屬性資訊。
語法
IDebugCustomAttributeQuery2 : IDebugCustomAttributeQuery
實作者的注意事項
符號提供者會在實作 IDebugField 的相同對象上實作這個介面,以支援自定義屬性。
呼叫端注意事項
使用 QueryInterface 從 IDebugField 介面取得此介面。
依照 Vtable 順序的方法
下表顯示 IDebugCustomAttributeQuery 介面的方法。
| 方法 | 描述 |
|---|---|
| IsCustomAttributeDefined | 判斷自定義屬性是否存在依名稱。 |
| GetCustomAttributeByName | 取得指定自定義屬性的屬性資訊。 |
除了 IDebugCustomAttributeQuery 方法之外, IDebugCustomAttributeQuery2 還實作下列方法:
| 方法 | 描述 |
|---|---|
| EnumCustomAttributes | 取得附加至此欄位之所有自訂屬性的列舉值。 |
備註
IEnumDebugCustomAttributes 方法可以針對為此欄位定義的所有自定義屬性傳回列舉值。
需求
標頭:sh.h
命名空間:Microsoft.VisualStudio.Debugger.Interop
元件:Microsoft.VisualStudio.Debugger.Interop.dll