ILauncher.TryOpenAsync(Uri) 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::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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.