Share via


ILauncher.TryOpenAsync(Uri) Method

Definition

First checks if the provided URI is supported, then opens the app specified by the URI.

public:
 System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Uri ^ uri);
public System.Threading.Tasks.Task<bool> TryOpenAsync (Uri uri);
abstract member TryOpenAsync : Uri -> System.Threading.Tasks.Task<bool>
Public Function TryOpenAsync (uri As Uri) As Task(Of Boolean)

Parameters

uri
Uri

URI to try and open.

Returns

true if the URI was opened, otherwise false.

Exceptions

Thrown when uri is malformed.

Applies to