IBrowser.OpenAsync(Uri, BrowserLaunchOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.