次の方法で共有


helpstringcontext

.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();
};

必要条件

属性コンテキスト Value
適用対象 classインターフェイス、インターフェイス メソッド
反復可能 いいえ
必要な属性 なし
無効な属性 なし

詳細については、「 属性コンテキスト」を参照してください。

関連項目

IDL 属性
インターフェイス属性
クラス属性
メソッド属性
module