helpcontext 屬性

[helpcoNtext] 屬性會指定內容識別碼,讓使用者在說明檔中檢視這個專案的相關資訊。

[
    uuid(uuid-number), 
    helpcontext(helpcontext-value)
    [, attribute-list]
] 
element element-name
{
    definitions
}

參數

uuid-number

指定連結 、[importlib]、 interfacedispinterfacemoduletypedefmethods[property]coclass的通用唯一識別碼。

helpcoNtext-value

唯一的整數,可識別與目前 MIDL 專案相關聯的解說文字。

attribute-list

指定一或多個套用至整個 MIDL 元素的屬性清單。

元素

下列其中一個指示詞: library、[importlib]、 interfacedispinterfacemoduletypedefmethodpropertycoclass

element-name

其他軟體元件可用來描述目前專案的名稱。

定義

指定組成專案定義的語句。

備註

[helpcoNtext] 屬性可以套用至下列元素: library、[importlib]、 interfacedispinterfacemoduletypedefmethodpropertycoclass

helpcoNtext-value 是說明檔內的 32 位內容識別碼,可使用ITypeLib 和ITypeInfo介面中的GetDocumentation函式來擷取。

範例

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676),
    helpcontext(7035943),
    helpstring("Hello Class"),
    appobject
] 
coclass Hello
{
    [default, helpcontext(3914972)] interface IHello : IUnknown;
    interface IDispatch;
}

另請參閱

coclass

dispinterface

使用 MIDL 產生類型程式庫

importlib

介面

圖書館

模組

ODL 檔案語法

ODL 檔案範例

typedef