在 .hlp 或 .chm 文件指定帮助主题的 ID。
[ helpstringcontext(
   contextID
) ]
参数
- contextID
在帮助文件的 32 位帮助上下文标识符。 
备注
helpstringcontext C++ 特性具有与 helpstringcontext ODL 属性相同。
示例
// cpp_attr_ref_helpstringcontext.cpp
// compile with: /LD
#include <unknwn.h>
[module(name="MyLib")];
[   object, 
   helpstring("help string"), 
   helpstringcontext(1), 
   uuid="11111111-1111-1111-1111-111111111111"
]
__interface IMyI 
{
   HRESULT xx();
};
要求
属性上下文
适用对象  | 
类, interface,接口方法  | 
可重复  | 
否  | 
必需的特性  | 
无  | 
无效的特性  | 
无  | 
有关更多信息,请参见 属性上下文。