Export (0) Print
Expand All

SVsHelpService Interface

Passed to GetService to return a reference to IVsHelpSystem.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

[GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4")] 
[GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4")] 
public interface SVsHelpService
/** @attribute GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4") */ 
/** @attribute GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4") */ 
public interface SVsHelpService
GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4") 
GuidAttribute("854D7AC0-BC3D-11D0-B421-00A0C90F9DC4") 
public interface SVsHelpService

The following example shows how to use this service to display a topic for a specific keyword.

using Microsoft.VisualStudio.Shell.Interop;

namespace MyPackageNamespace
{
    class MyPackage : Package
    {
        void ShowHelp(string keyword)
        {
            IVsHelpSystem helpSystem = this.GetService(typeof(SVsHelpService) as IVsHelpSystem;
            if (null != helpSystem)
            {
                helpSystem.ALinkSearch(keyword, 0, 0);
            }
        }
    }
}

Community Additions

ADD
Show:
© 2014 Microsoft