Dela via


IVsWebBrowser.NavigateEx Method

Navigates to web with external protocol URLs.

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

Syntax

'Declaration
Function NavigateEx ( _
    dwFlags As UInteger, _
    lpszURL As String, _
    ByRef pvarTargetFrame As Object, _
    ByRef pvarPostData As Object, _
    ByRef pvarHeaders As Object _
) As Integer
int NavigateEx(
    uint dwFlags,
    string lpszURL,
    ref Object pvarTargetFrame,
    ref Object pvarPostData,
    ref Object pvarHeaders
)
int NavigateEx(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] String^ lpszURL, 
    [InAttribute] Object^% pvarTargetFrame, 
    [InAttribute] Object^% pvarPostData, 
    [InAttribute] Object^% pvarHeaders
)
abstract NavigateEx : 
        dwFlags:uint32 * 
        lpszURL:string * 
        pvarTargetFrame:Object byref * 
        pvarPostData:Object byref * 
        pvarHeaders:Object byref -> int
function NavigateEx(
    dwFlags : uint, 
    lpszURL : String, 
    pvarTargetFrame : Object, 
    pvarPostData : Object, 
    pvarHeaders : Object
) : 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.

  • pvarTargetFrame
    Type: Object%

    [in] The target frame.

  • pvarPostData
    Type: Object%

    [in] The data to post.

  • pvarHeaders
    Type: Object%

    [in] Headers.

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::NavigateEx(
   [in] DWORD dwFlags, 
   [in] LPCOLESTR lpszURL, 
   [in] VARIANT* pvarTargetFrame, 
   [in] VARIANT* pvarPostData, 
   [in] VARIANT* pvarHeaders
);

.NET Framework Security

See Also

Reference

IVsWebBrowser Interface

Microsoft.VisualStudio.Shell.Interop Namespace