Share via


IAssistance.ClearDefaultContext Method

Clears the default help topic previously defined in the SetDefaultContext method.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub ClearDefaultContext ( _
    HelpId As String _
)
'Usage
Dim instance As IAssistance
Dim HelpId As String

instance.ClearDefaultContext(HelpId)
void ClearDefaultContext(
    string HelpId
)

Parameters

Remarks

Executing this method will stop the default help topic from displaying when the user presses F1 or clicks the Help button in a dialog box.

The Assistance property of an Application object returns an IAssistance object. The IAssistance object exposes methods that allow developers to display help topics in the Office Help Viewer or to display help topics that ship with Office in the Help window of the host application. Developers either pass specific Help IDs to the help system or pass specific search queries. Help IDs have to be explicitly added to the Help file in order for the Help ID to return the help topic.

See Also

Reference

IAssistance Interface

IAssistance Members

Microsoft.Office.Core Namespace