Share via


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: String

    The URL to open.

  • flags
    Type: UInt32

    The T[:Microsoft.VisualStudio.Shell.Interop.__VSOSPFLAGS] values to pass to IOpenStandardPreviewer.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

OpenBrowser Overload

Microsoft.VisualStudio.Shell Namespace