GetFileDef 方法

更新:2007 年 11 月

检索元数据中使用的实际 FileDef 标记(相对于 ALink 指定的标记)。

HRESULT GetFileDef(
    mdAssembly AssemblyID,
    mdFile TargetFile,
    mdFile* pScope
) PURE;

参数

  • AssemblyID
    程序集的 ID。

  • TargetFile
    AddFile 方法AddImport 方法 中检索到的所添加文件的标记。

  • pScope
    接收 FileDef 标记。

返回值

如果此方法成功,则返回 S_OK。

要求

需要 alink.h

请参见

概念

ALink API(非托管 API 参考)

其他资源

IALink2 接口

IALink 接口