SVsHelpService Interface

Definition

Passed to GetService(Type) to return a reference to IVsHelpSystem.

C++/CX
public interface class SVsHelpService
Attributes

Examples

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

C#
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);  
            }  
        }  
    }  
}  

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022