Launcher.CanOpenAsync Method

Definition

Overloads

CanOpenAsync(String)

Queries if the device supports opening the given URI scheme.

CanOpenAsync(Uri)

Queries if the device supports opening the given URI scheme.

CanOpenAsync(String)

Queries if the device supports opening the given URI scheme.

public:
 static System::Threading::Tasks::Task<bool> ^ CanOpenAsync(System::String ^ uri);
public static System.Threading.Tasks.Task<bool> CanOpenAsync (string uri);
static member CanOpenAsync : string -> System.Threading.Tasks.Task<bool>
Public Shared Function CanOpenAsync (uri As String) As Task(Of Boolean)

Parameters

uri
String

URI scheme to query.

Returns

true if opening is supported, otherwise false.

Exceptions

Thrown when uri is malformed.

Remarks

May throw System.UriFormatException if uri is malformed

Applies to

CanOpenAsync(Uri)

Queries if the device supports opening the given URI scheme.

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

Parameters

uri
Uri

URI scheme to query.

Returns

true if opening is supported, otherwise false.

Exceptions

Thrown when uri is malformed.

Remarks

May throw System.UriFormatException if uri is malformed

Applies to