Compartir a través de


ItemOperations.Navigate(String, vsNavigateOptions) Method

Definition

Goes to the given URL.

EnvDTE::Window Navigate(std::wstring const & URL = "", EnvDTE::vsNavigateOptions Options = EnvDTE.vsNavigateOptions.vsNavigateOptionsDefault);
[System.Runtime.InteropServices.DispId(8)]
public EnvDTE.Window Navigate (string URL = "", EnvDTE.vsNavigateOptions Options = EnvDTE.vsNavigateOptions.vsNavigateOptionsDefault);
[<System.Runtime.InteropServices.DispId(8)>]
abstract member Navigate : string * EnvDTE.vsNavigateOptions -> EnvDTE.Window
Public Function Navigate (Optional URL As String = "", Optional Options As vsNavigateOptions = EnvDTE.vsNavigateOptions.vsNavigateOptionsDefault) As Window

Parameters

URL
String

Optional. URL of the file to open. If URL is not specified, the default home page is opened. The default value of URL is "".

Options
vsNavigateOptions

Optional. A vsNavigateOptions constant that determines whether the browsed content displays in an external Web browser window or in a new window.

Returns

A Window object.

Attributes

Examples

Sub NavigateExample(ByVal dte As DTE)  
   Dim ItemOp As ItemOperations  
   ItemOp = dte.ItemOperations  
   ItemOp.Navigate("http://www.microsoft.com")  
End Sub  

Applies to