Browser.OpenAsync 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.
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)
Open the browser to specified uri.
public static System.Threading.Tasks.Task OpenAsync (string uri);
Parameters
- uri
- System.String
Uri to launch.
Returns
Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.
Applies to
OpenAsync(Uri)
Open the browser to specified uri.
public static System.Threading.Tasks.Task OpenAsync (Uri uri);
Parameters
- uri
- System.Uri
Uri to launch.
Returns
Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.
Applies to
OpenAsync(String, BrowserLaunchMode)
Open the browser to specified uri.
public static System.Threading.Tasks.Task OpenAsync (string uri, Xamarin.Essentials.BrowserLaunchMode launchMode);
Parameters
- uri
- System.String
Uri to launch.
- 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)
Open the browser to specified uri.
public static System.Threading.Tasks.Task OpenAsync (string uri, Xamarin.Essentials.BrowserLaunchOptions options);
Parameters
- uri
- System.String
Uri to launch.
- 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)
Open the browser to specified uri.
public static System.Threading.Tasks.Task OpenAsync (Uri uri, Xamarin.Essentials.BrowserLaunchMode launchMode);
Parameters
- uri
- System.Uri
Uri to launch.
- 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)
Open the browser to specified uri.
public static System.Threading.Tasks.Task<bool> OpenAsync (Uri uri, Xamarin.Essentials.BrowserLaunchOptions options);
Parameters
- uri
- System.Uri
Uri to launch.
- 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.