Share via


IBrowser.OpenAsync(Uri, BrowserLaunchOptions) Method

Definition

Open the browser to specified URI.

public:
 System::Threading::Tasks::Task<bool> ^ OpenAsync(Uri ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchOptions ^ options);
public System.Threading.Tasks.Task<bool> OpenAsync (Uri uri, Microsoft.Maui.ApplicationModel.BrowserLaunchOptions options);
abstract member OpenAsync : Uri * Microsoft.Maui.ApplicationModel.BrowserLaunchOptions -> System.Threading.Tasks.Task<bool>
Public 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