IVsHelpSystem.DisplayTopicFromURL 方法

使用 URL 和选项卡上,显示主题。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function DisplayTopicFromURL ( _
    pszURL As String, _
    Command As UInteger _
) As Integer
int DisplayTopicFromURL(
    string pszURL,
    uint Command
)

参数

  • pszURL
    类型:System.String
    [in] 对包含 URL 的字符串的指针。
  • Command
    类型:System.UInt32
    [in] 指定帮助选项的位标志。构造一个在 VHS_COMMAND 枚举和 HTML help 命令的值

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

为了此方法使用的 VHS_Localize,需要在以下形式之一来指定 URL:

[C++]

filename.chm
filename.chm::/path\name.htm

例如,下面的两个 URL 是有效的:

[C++]

Vj98help.chm
Vj98help.chm::/html\vjmsgcompilererror.htm

.NET Framework 安全性

请参见

参考

IVsHelpSystem 接口

Microsoft.VisualStudio.Shell.Interop 命名空间