IVsUIHierarchyWindow2.SetWindowHelpTopic(String, UInt32) 方法

定义

为 "层次结构" 窗口设置 "帮助" 主题。

public:
 int SetWindowHelpTopic(System::String ^ lpszHelpFile, System::UInt32 dwContext);
public:
 int SetWindowHelpTopic(Platform::String ^ lpszHelpFile, unsigned int dwContext);
int SetWindowHelpTopic(std::wstring const & lpszHelpFile, unsigned int dwContext);
public int SetWindowHelpTopic (string lpszHelpFile, uint dwContext);
abstract member SetWindowHelpTopic : string * uint32 -> int
Public Function SetWindowHelpTopic (lpszHelpFile As String, dwContext As UInteger) As Integer

参数

lpszHelpFile
String

中帮助文件名。

dwContext
UInt32

中帮助主题的上下文。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

当用户在 "活动层次结构" 窗口中按 F1 键时,此方法将为该窗口设置相应的帮助主题。 "帮助" 主题特定于 "层次结构" 窗口,而不是 "层次结构" 窗口中的项。

适用于