Partager via


IVsWebBrowser.Navigate Method

Navigates to web with Visual Studio internal protocol URLs.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function Navigate ( _
    dwFlags As UInteger, _
    lpszURL As String _
) As Integer
int Navigate(
    uint dwFlags,
    string lpszURL
)
int Navigate(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] String^ lpszURL
)
abstract Navigate : 
        dwFlags:uint32 * 
        lpszURL:string -> int
function Navigate(
    dwFlags : uint, 
    lpszURL : String
) : int

Parameters

  • dwFlags
    Type: UInt32

    [in] Flags specifying navigation options. Possible values are VSNWB_ForceNew, VSNWB_AddToMRU, VSNWB_VsURLOnly, and VSNWB_WebURLOnly.

  • lpszURL
    Type: String

    [in] The URL to which to navigate.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsbrowse.idl:

HRESULT IVsWebBrowser::Navigate(
   [in] DWORD dwFlags, 
   [in] LPCOLESTR lpszURL
);

.NET Framework Security

See Also

Reference

IVsWebBrowser Interface

Microsoft.VisualStudio.Shell.Interop Namespace