Udostępnij za pośrednictwem


LauncherExtensions.OpenAsync(ILauncher, String) Metoda

Definicja

Otwiera aplikację określoną przez schemat identyfikatora URI.

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)

Parametry

launcher
ILauncher

Obiekt, na który jest wywoływana ta metoda.

uri
String

Identyfikator URI do otwarcia.

Zwraca

true jeśli identyfikator URI został otwarty, w przeciwnym razie false.

Wyjątki

Zgłaszany, gdy uri jest źle sformułowany.

Dotyczy