Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ItemOperations.Navigate Method

Goes to the given URL.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

Window Navigate (
	[OptionalAttribute] [InAttribute] string URL,
	[OptionalAttribute] [InAttribute] vsNavigateOptions Options
)
Window Navigate (
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String URL, 
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ vsNavigateOptions Options
)
function Navigate (
	URL : String, 
	Options : vsNavigateOptions
) : Window

Parameters

URL

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

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

Return Value

A Window object.

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

Community Additions

ADD
Show:
© 2015 Microsoft