Launcher.CanOpenAsync 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.
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)
- Source:
- Launcher.shared.cs
- Source:
- Launcher.shared.cs
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)
- Source:
- Launcher.shared.cs
- Source:
- Launcher.shared.cs
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