Launcher.TryOpenAsync Method

Definition

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

System.Threading.Tasks.Task<System.Boolean>

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

System.Threading.Tasks.Task<System.Boolean>

True if opening is supported, otherwise false

Remarks

May throw System.UriFormatException if uri is malformed

Applies to