获取指向实现指定方法的 Type 元数据令牌的指针,以及声明该方法的接口。
Syntax
HRESULT GetInterfaceImplProps (
   [in]  mdInterfaceImpl        iiImpl,
   [out] mdTypeDef              *pClass,
   [out] mdToken                *ptkIface
);
Parameters
              iiImpl [in]表示要为其返回类和接口令牌的方法的元数据令牌。
              pClass [out]表示实现方法的类的元数据标记。
              ptkIface [out]表示定义已实现方法的接口的元数据令牌。
Remarks
通过调用 EnumInterfaceImpls 方法获取该值iImpl。
例如,假设类的标记值为 0x02000007,并且它实现类型具有标记的三个 mdTypeDef 接口:
- 0x02000003 (TypeDef)
- 0x0100000A (TypeRef)
- 0x0200001C (TypeDef)
从概念上讲,此信息存储在接口实现表中,如下所示:
| Row number | Class token | Interface token | 
|---|---|---|
| 4 | ||
| 5 | 02000007 | 02000003 | 
| 6 | 02000007 | 0100000A | 
| 7 | ||
| 8 | 02000007 | 0200001C | 
回想一下,令牌是一个 4 字节值:
- 较低的 3 个字节保留行号或 RID。
- 上字节保留标记类型 - 0x09 。mdtInterfaceImpl
              GetInterfaceImplProps 返回在参数中提供的令牌所在的行中 iImpl 保存的信息。
Requirements
平台: 请参阅 .NET 支持的作系统。
Header: Cor.h
Library: CorGuids.lib