共用方式為


helpstringcontext

指定 .hlp 或 .chm 檔案中說明主題的識別碼。

語法

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

需求

屬性內容
適用於 class 介面、 介面 方法
可重複 No
必要屬性
無效屬性

如需詳細資訊,請參閱 屬性內容

另請參閱

IDL 屬性
介面屬性
類別屬性
方法屬性
module