Expand Minimize

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")]
[ComVisibleAttribute(false)]
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);
            }
        }
    }
}
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft