IDebugHostField2 接口 (dbgmodel.h)

IDebugHostField 版本 2,它是 IDebugHostSymbol 的专用化,表示类或结构的字段。

此版本 2 的接口支持具有相同签名的所有以前的方法,并包括提供新增功能的其他新方法。 新方法列在该接口的节末尾的标头中。

遗产

IDebugHostField2 接口继承自 IDebugHostField 接口。

方法

IDebugHostField2 接口具有这些方法。

 
IDebugHostField2::AddRef

AddRef 方法递增对象的引用计数。
IDebugHostField2::EnumerateChildren

EnumerateChildren 方法获取能够枚举给定符号的所有子级的枚举器。
IDebugHostField2::GetContainingModule

在符号上调用 GetContainingModule 方法时,如果符号具有包含模块,则获取包含符号的模块。
IDebugHostField2::GetContainingType

GetContainingType 方法返回包含父级的类型(包含此符号的类型)。
IDebugHostField2::GetContext

在符号上调用 GetContext 方法时,获取符号所在的主机上下文。
IDebugHostField2::GetLocation

对于具有地址的字段,而不考虑特定类型实例(例如其位置类型指示 LocationStatic 的字段),GetLocation 方法将返回字段的抽象位置(地址)。
IDebugHostField2::GetLocationKind

在符号上调用 GetLocationKind 方法时,根据 LocationKind 枚举获取符号所在的位置类型。
IDebugHostField2::GetName

在符号上调用 GetName 方法时,如果符号具有名称,则获取符号的名称。
IDebugHostField2::GetOffset

对于具有偏移量的字段,GetOffset 方法将返回从包含类型的基址到字段本身的数据的偏移量。
IDebugHostField2::GetSymbolKind

在符号上调用 GetSymbolKind 方法时,获取字段、基类或类型等符号类型。
IDebugHostField2::GetType

在符号上调用 GetType 方法时,获取符号的类型,例如 int *。
IDebugHostField2::GetValue

对于在符号信息中定义的常量值的字段,GetValue 方法将返回字段的常量值。
IDebugHostField2::QueryInterface

QueryInterface 方法查询字段对象上的特定接口。
IDebugHostField2::Release

Release 方法释放对字段对象的引用。

要求

要求 价值
标头 dbgmodel.h

另请参阅

调试器数据模型C++概述