Launcher.TryOpenAsync 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
TryOpenAsync(String) |
First checks if the provided URI is supported, then opens the app specified by the URI. |
TryOpenAsync(Uri) |
First checks if the provided URI is supported, then opens the app specified by the URI. |
TryOpenAsync(String)
- Source:
- Launcher.shared.cs
- Source:
- Launcher.shared.cs
First checks if the provided URI is supported, then opens the app specified by the URI.
public:
static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(System::String ^ uri);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (string uri);
static member TryOpenAsync : string -> System.Threading.Tasks.Task<bool>
Public Shared Function TryOpenAsync (uri As String) As Task(Of Boolean)
Parameters
- uri
- String
URI to try and open.
Returns
true
if the URI was opened, otherwise false
.
Exceptions
Thrown when uri
is malformed.
Remarks
May throw System.UriFormatException if uri is malformed
Applies to
TryOpenAsync(Uri)
- Source:
- Launcher.shared.cs
- Source:
- Launcher.shared.cs
First checks if the provided URI is supported, then opens the app specified by the URI.
public:
static System::Threading::Tasks::Task<bool> ^ TryOpenAsync(Uri ^ uri);
public static System.Threading.Tasks.Task<bool> TryOpenAsync (Uri uri);
static member TryOpenAsync : Uri -> System.Threading.Tasks.Task<bool>
Public Shared 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.
Remarks
May throw System.UriFormatException if uri is malformed