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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.