LauncherExtensions.OpenAsync(ILauncher, String) 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.
Opens the app specified by the URI scheme.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<bool> ^ OpenAsync(Microsoft::Maui::ApplicationModel::ILauncher ^ launcher, System::String ^ uri);
public static System.Threading.Tasks.Task<bool> OpenAsync (this Microsoft.Maui.ApplicationModel.ILauncher launcher, string uri);
static member OpenAsync : Microsoft.Maui.ApplicationModel.ILauncher * string -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function OpenAsync (launcher As ILauncher, uri As String) As Task(Of Boolean)
Parameters
- launcher
- ILauncher
The object this method is invoked on.
- uri
- String
URI to open.
Returns
true
if the URI was opened, otherwise false
.
Exceptions
Thrown when uri
is malformed.
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.