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) |
Launches the app specified by the uri scheme and returns if it was supported or not |
TryOpenAsync(Uri) |
Launches the app specified by the uri scheme and returns if it was supported or not |
TryOpenAsync(String)
Launches the app specified by the uri scheme and returns if it was supported or not
public static System.Threading.Tasks.Task<bool> TryOpenAsync (string uri);
Parameters
- uri
- System.String
string uri scheme
Returns
True if opening is supported, otherwise false
Remarks
May throw System.UriFormatException if uri is malformed
Applies to
TryOpenAsync(Uri)
Launches the app specified by the uri scheme and returns if it was supported or not
public static System.Threading.Tasks.Task<bool> TryOpenAsync (Uri uri);
Parameters
- uri
- System.Uri
uri scheme
Returns
True if opening is supported, otherwise false
Remarks
May throw System.UriFormatException if uri is malformed