(IDebugHostSymbol 派生)接口到特定类型。
IDebugHostType2 或 IDebugHostType 接口描述了给定的语言/本机类型。 请注意,这些接口上的某些方法仅适用于特定类型的类型。
此版本 2 的接口支持具有相同签名的所有以前的方法,并包括提供新增功能的其他新方法。 新方法列在该接口的节末尾的标头中。
遗产
IDebugHostType2 继承自 IDebugHostType。
方法
IDebugHostType2 接口具有这些方法。
IDebugHostType2::AddRef IDebugHostType2::AddRef 方法递增对象上接口的引用计数。 |
IDebugHostType2::CreateArrayOf 在类型上调用 IDebugHostType2::CreateArrayOf 方法时,获取一个新的 IDebugHostType,该类型是具有指定数组维度的类型数组。 |
IDebugHostType2::CreatePointerTo 在类型上调用 IDebugHostType2::CreatePointerTo 方法时,获取指向该类型的指针的新 IDebugHostType。 |
IDebugHostType2::EnumerateChildren IDebugHostType2::EnumerateChildren 方法获取能够枚举给定符号的所有子级的枚举器。 |
IDebugHostType2::GetArrayDimensionality 当对数组的类型调用时,IDebugHostType2::GetArrayDimensionality 方法获取数组的维度。 |
IDebugHostType2::GetArrayDimensions 在数组的类型上调用 IDebugHostType2::GetArrayDimensions 方法时,获取一组描述符,一个用于数组的每个维度。 |
IDebugHostType2::GetBaseType 在类型上调用 IDebugHostType2::GetBaseType 方法时,获取基类型。 基类型是数组的指针或元素类型的目标类型。 |
IDebugHostType2::GetBitField 在位图类型上调用 IDebugHostType2::GetBitField 方法时,获取有关位图结构的信息。 |
IDebugHostType2::GetContainingModule 在对符号调用时,IDebugHostType2::GetContainingModule 方法获取包含符号的模块(如果该符号具有包含模块)。 |
IDebugHostType2::GetContext 在符号上调用 IDebugHostType2::GetContext 方法时,获取符号所在的主机上下文。 |
IDebugHostType2::GetFunctionCallingConvention GetFunctionCallingConvention 方法返回函数的调用约定。 |
IDebugHostType2::GetFunctionInstancePointerType 指示传递给函数的实例 (“this”) 指针的类型。 |
IDebugHostType2::GetFunctionParameterTypeAt 在函数类型上调用时,IDebugHostType2::GetFunctionParameterTypeAt 方法获取函数参数列表中的给定索引处的参数类型。 |
IDebugHostType2::GetFunctionParameterTypeCount 在对函数的类型调用时,IDebugHostType2::GetFunctionParameterTypeCount 方法获取函数采用的参数数。 |
IDebugHostType2::GetFunctionReturnType 在对函数的类型调用时,IDebugHostType2::GetFunctionReturnType 方法获取函数的返回类型。 |
IDebugHostType2::GetFunctionVarArgsKind GetFunctionVarArgsKind 方法返回给定函数是否使用变量参数列表,如果是,则返回它利用的变量参数样式。 |
IDebugHostType2::GetGenericArgumentAt 在函数类型上调用时,IDebugHostType2::GetGenericArgumentAt 方法在函数的参数列表中获取给定索引处的泛型参数。 |
IDebugHostType2::GetGenericArgumentCount 在类型上调用 IDebugHostType2::GetGenericArgumentCount 方法时,获取该类型的泛型参数数。 |
IDebugHostType2::GetHashCode 在类型上调用 IDebugHostType2::GetHashCode 方法时,获取该类型的 32 位哈希代码。 |
IDebugHostType2::GetIntrinsicType 在对类型调用时,IDebugHostType2::GetIntrinsicType 方法获取有关类型内部类型的信息。 |
IDebugHostType2::GetMemberType 调用指向模块成员的指针的类型时,IDebugHostType2::GetMemberType 方法获取模块成员的类。 |
IDebugHostType2::GetName 在符号上调用 IDebugHostType2::GetName 方法时,如果符号具有名称,则获取符号的名称。 |
IDebugHostType2::GetPointerKind 在指针的类型上调用 IDebugHostType2::GetPointerKind 方法时,获取 PointerKind 枚举指定的指针类型。 |
IDebugHostType2::GetSize 在类型上调用 IDebugHostType2::GetSize 方法时,获取类型的大小。 此方法等效于 C++ 中的 sizeof(type)。 |
IDebugHostType2::GetSymbolKind 在对符号调用时,IDebugHostType2::GetSymbolKind 方法获取字段、基类或类型等符号类型。 |
IDebugHostType2::GetType 在符号上调用 IDebugHostType2::GetType 方法时,获取符号类型,例如 int *。 |
IDebugHostType2::GetTypedefBaseType GetTypedefBaseType 方法将返回 typedef 的直接定义。 |
IDebugHostType2::GetTypedefFinalBaseType GetTypedefFinalBaseType 方法将返回 typedef 是定义的最终类型。 |
IDebugHostType2::GetTypeKind 在类型上调用 IDebugHostType2::GetTypeKind 方法时,获取 TypeKind 枚举指定的类型类型。 |
IDebugHostType2::IsGeneric 在类型上调用 IDebugHostType2::IsGeneric 方法时,获取类型是泛型还是模板。 |
IDebugHostType2::IsTypedef IsTypedef 方法是唯一能够查看类型是否为 typedef 的方法。 |
IDebugHostType2::QueryInterface IDebugHostType2::QueryInterface 方法检索指向对象上支持的接口的指针。 |
IDebugHostType2::Release IDebugHostType2::Release 方法会递减对象上接口的引用计数。 |
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |