LauncherExtensions.TryOpenAsync(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.
First checks if the provided URI is supported, then opens the app specified by the URI.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Microsoft::Maui::ApplicationModel::ILauncher ^ launcher, System::String ^ uri);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (this Microsoft.Maui.ApplicationModel.ILauncher launcher, string uri);
static member TryOpenAsync : Microsoft.Maui.ApplicationModel.ILauncher * string -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function TryOpenAsync (launcher As ILauncher, uri As String) As Task(Of Boolean)
Parameters
- launcher
- ILauncher
The object this method is invoked on.
- uri
- String
URI to try and open.
Returns
true
if the URI was opened, otherwise false
.
Exceptions
Thrown when uri
is malformed.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin