VsShellUtilities.OpenBrowser Method (String, UInt32)
Open the user's default browser on the given URL. The default browser is set in the Browse With UI. The internal browser is not used if the shell is in a modal state.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Sub OpenBrowser ( _
page As String, _
flags As UInteger _
)
public static void OpenBrowser(
string page,
uint flags
)
public:
static void OpenBrowser(
String^ page,
unsigned int flags
)
static member OpenBrowser :
page:string *
flags:uint32 -> unit
public static function OpenBrowser(
page : String,
flags : uint
)
Parameters
page
Type: StringThe URL to open.
flags
Type: UInt32The T[:Microsoft.VisualStudio.Shell.Interop.__VSOSPFLAGS] values to pass to IOpenStandardPreviewer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.