Help2.GetNextTopic(String) Methode

Definition

Erhält eine URL und gibt die nächste URL im Inhaltsverzeichnis zurück.

public:
 System::String ^ GetNextTopic(System::String ^ bstrURL);
public:
 Platform::String ^ GetNextTopic(Platform::String ^ bstrURL);
std::wstring GetNextTopic(std::wstring const & bstrURL);
[System.Runtime.InteropServices.DispId(14)]
public string GetNextTopic (string bstrURL);
[<System.Runtime.InteropServices.DispId(14)>]
abstract member GetNextTopic : string -> string
Public Function GetNextTopic (bstrURL As String) As String

Parameter

bstrURL
String

Eine Zeichenfolge mit der URL des aktuellen Themas, das mit Internet Explorer kompatibel ist.

Gibt zurück

String

Gibt eine Zeichenfolge zurück, die die URL des nächsten Themas im Inhaltsverzeichnis enthält.

Implementiert

Attribute

Beispiele

Erstellen Visual Studio Sie ein Add-in mit, Visual C# wie unter Gewusst wie: Erstellen eines Add-insbeschrieben. Fügen Sie Verweise auf Microsoft.VisualStudio.VSHelp , Microsoft.VisualStudio.VSHelp80 und hinzu System.Windows.Forms . Ersetzen Sie den Code in der- OnConnection Methode in der Connect.cs-Datei durch den folgenden Code. Führen Sie das Codebeispiel wie unter Gewusst wie: Kompilieren und Ausführen der Codebeispiele für das Automatisierungs Objektmodellbeschrieben aus.

using System;  
using Extensibility;  
using EnvDTE;  
using EnvDTE80;  
using Microsoft.VisualStudio.VSHelp;  
using Microsoft.VisualStudio.VSHelp80;  
using System.Windows.Forms;  

public void OnConnection(object application,  
ext_ConnectMode connectMode, object addInInst, ref Array custom)  
{  
    _applicationObject = (DTE2)application;  
    _addInInstance = (AddIn)addInInst;  
    HelpGetNextURLExample(_applicationObject);  
}  

public void HelpGetNextURLExample(DTE2 dte)  
{  
    // Returns and displays the URL of the topic that followins  
    // the topic specified  
    // by the URL in the table of contents.  
    try  
    {  
        Microsoft.VisualStudio.VSHelp80.Help2 help2 =  
(Microsoft.VisualStudio.VSHelp80.Help2)_applicationObject.GetObject ("Help2");  

        // Get the next URL from the Visual Studio topic  
        // and display it.  
        MessageBox.Show("The next URL after the supplied one is "   
+ "\n" + help2.GetNextTopic  
("ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/  
dv_vstoc/html/06ddebea-2c83-4a45-bb48-6264c797ed93.htm"));  

    }  
    catch (SystemException ex)  
    {  
        MessageBox.Show("ERROR: " + ex);  
    }  
}  

Gilt für