Aracılığıyla paylaş


BrowserExtensions.OpenAsync Method

Definition

Overloads

OpenAsync(IBrowser, String)

Open the browser to specified URI.

OpenAsync(IBrowser, Uri)

Open the browser to specified URI.

OpenAsync(IBrowser, String, BrowserLaunchMode)

Open the browser to specified URI.

OpenAsync(IBrowser, String, BrowserLaunchOptions)

Open the browser to specified URI.

OpenAsync(IBrowser, Uri, BrowserLaunchMode)

Open the browser to specified URI.

OpenAsync(IBrowser, String)

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

Open the browser to specified URI.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::IBrowser ^ browser, System::String ^ uri);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.IBrowser browser, string uri);
static member OpenAsync : Microsoft.Maui.ApplicationModel.IBrowser * string -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (browser As IBrowser, uri As String) As Task(Of Boolean)

Parameters

browser
IBrowser

The IBrowser instance to invoke this method on.

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(IBrowser, Uri)

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

Open the browser to specified URI.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::IBrowser ^ browser, Uri ^ uri);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.IBrowser browser, Uri uri);
static member OpenAsync : Microsoft.Maui.ApplicationModel.IBrowser * Uri -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (browser As IBrowser, uri As Uri) As Task(Of Boolean)

Parameters

browser
IBrowser

The IBrowser instance to invoke this method on.

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(IBrowser, String, BrowserLaunchMode)

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

Open the browser to specified URI.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::IBrowser ^ browser, System::String ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchMode launchMode);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.IBrowser browser, string uri, Microsoft.Maui.ApplicationModel.BrowserLaunchMode launchMode);
static member OpenAsync : Microsoft.Maui.ApplicationModel.IBrowser * string * Microsoft.Maui.ApplicationModel.BrowserLaunchMode -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (browser As IBrowser, uri As String, launchMode As BrowserLaunchMode) As Task(Of Boolean)

Parameters

browser
IBrowser

The IBrowser instance to invoke this method on.

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(IBrowser, String, BrowserLaunchOptions)

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

Open the browser to specified URI.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::IBrowser ^ browser, System::String ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchOptions ^ options);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.IBrowser browser, string uri, Microsoft.Maui.ApplicationModel.BrowserLaunchOptions options);
static member OpenAsync : Microsoft.Maui.ApplicationModel.IBrowser * string * Microsoft.Maui.ApplicationModel.BrowserLaunchOptions -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (browser As IBrowser, uri As String, options As BrowserLaunchOptions) As Task(Of Boolean)

Parameters

browser
IBrowser

The IBrowser instance to invoke this method on.

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(IBrowser, Uri, BrowserLaunchMode)

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

Open the browser to specified URI.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::IBrowser ^ browser, Uri ^ uri, Microsoft::Maui::ApplicationModel::BrowserLaunchMode launchMode);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.IBrowser browser, Uri uri, Microsoft.Maui.ApplicationModel.BrowserLaunchMode launchMode);
static member OpenAsync : Microsoft.Maui.ApplicationModel.IBrowser * Uri * Microsoft.Maui.ApplicationModel.BrowserLaunchMode -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (browser As IBrowser, uri As Uri, launchMode As BrowserLaunchMode) As Task(Of Boolean)

Parameters

browser
IBrowser

The IBrowser instance to invoke this method on.

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