Share via


Browser.OpenAsync Method

Definition

Overloads

OpenAsync(String)

Open the browser to specified URI.

OpenAsync(Uri)

Open the browser to specified URI.

OpenAsync(String, BrowserLaunchMode)

Open the browser to specified URI.

OpenAsync(String, BrowserLaunchOptions)

Open the browser to specified URI.

OpenAsync(Uri, BrowserLaunchMode)

Open the browser to specified URI.

OpenAsync(Uri, BrowserLaunchOptions)

Open the browser to specified URI.

OpenAsync(String)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(System::String ^ uri);
public static System.Threading.Tasks.Task<bool> OpenAsync (string uri);
static member OpenAsync : string -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As String) As Task(Of Boolean)

Parameters

uri
String

URI to open.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Uri ^ uri);
public static System.Threading.Tasks.Task<bool> OpenAsync (Uri uri);
static member OpenAsync : Uri -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As Uri) As Task(Of Boolean)

Parameters

uri
Uri

URI to open.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(String, BrowserLaunchMode)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(System::String ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchMode launchMode);
public static System.Threading.Tasks.Task<bool> OpenAsync (string uri, Microsoft.Maui.ApplicationModel.BrowserLaunchMode launchMode);
static member OpenAsync : string * Microsoft.Maui.ApplicationModel.BrowserLaunchMode -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As String, launchMode As BrowserLaunchMode) As Task(Of Boolean)

Parameters

uri
String

URI to open.

launchMode
BrowserLaunchMode

How to launch the browser.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(String, BrowserLaunchOptions)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(System::String ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchOptions ^ options);
public static System.Threading.Tasks.Task<bool> OpenAsync (string uri, Microsoft.Maui.ApplicationModel.BrowserLaunchOptions options);
static member OpenAsync : string * Microsoft.Maui.ApplicationModel.BrowserLaunchOptions -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As String, options As BrowserLaunchOptions) As Task(Of Boolean)

Parameters

uri
String

URI to open.

options
BrowserLaunchOptions

Launch options for the browser.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri, BrowserLaunchMode)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Uri ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchMode launchMode);
public static System.Threading.Tasks.Task<bool> OpenAsync (Uri uri, Microsoft.Maui.ApplicationModel.BrowserLaunchMode launchMode);
static member OpenAsync : Uri * Microsoft.Maui.ApplicationModel.BrowserLaunchMode -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As Uri, launchMode As BrowserLaunchMode) As Task(Of Boolean)

Parameters

uri
Uri

URI to open.

launchMode
BrowserLaunchMode

How to launch the browser.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri, BrowserLaunchOptions)

Source:
Browser.shared.cs
Source:
Browser.shared.cs

Open the browser to specified URI.

public:
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Uri ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchOptions ^ options);
public static System.Threading.Tasks.Task<bool> OpenAsync (Uri uri, Microsoft.Maui.ApplicationModel.BrowserLaunchOptions options);
static member OpenAsync : Uri * Microsoft.Maui.ApplicationModel.BrowserLaunchOptions -> System.Threading.Tasks.Task<bool>
Public Shared Function OpenAsync (uri As Uri, options As BrowserLaunchOptions) As Task(Of Boolean)

Parameters

uri
Uri

URI to open.

options
BrowserLaunchOptions

Launch options for the browser.

Returns

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to