Share via


helpstringcontext

.hlp ファイルまたは .chm ファイルのヘルプ トピックの ID を指定します。

[ helpstringcontext(
      contextID
) ]

パラメータ

  • contextID
    ヘルプ ファイルの 32 ビットのヘルプ コンテキスト ID。

解説

C++ 属性 helpstringcontext の機能は、Microsoft インターフェイス定義言語 (MIDL: Microsoft Interface Definition Language) 属性 helpstringcontext と同じです。

使用例

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

必要条件

属性コンテキスト

対象

class、interface、インターフェイス メソッド

複数回の適用

不可

必要な属性

なし

無効な属性

なし

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

参照

概念

IDL 属性

インターフェイス属性

クラス属性

メソッド属性

module (C++)

ATL サンプル