Share via


Launcher.QueryFileSupportAsync Method

Definition

Overloads

QueryFileSupportAsync(StorageFile)

Asynchronously query whether an app can be activated for the specified file.

QueryFileSupportAsync(StorageFile, String)

Asynchronously query whether an app with the specified package name can be activated for the specified file.

QueryFileSupportAsync(StorageFile)

Asynchronously query whether an app can be activated for the specified file.

[Windows.Foundation.Metadata.Overload("QueryFileSupportAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile file);

Parameters

file
StorageFile

The file for which to query support.

Returns

A value that indicates whether an application can be activated for the file.

Attributes

Remarks

This API may also be called from Windows desktop application.

Both Windows desktop application and Universal Windows Platform (UWP) app are considered.

See also

Applies to

QueryFileSupportAsync(StorageFile, String)

Asynchronously query whether an app with the specified package name can be activated for the specified file.

[Windows.Foundation.Metadata.Overload("QueryFileSupportWithPackageFamilyNameAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile file, string packageFamilyName);

Parameters

file
StorageFile

The file for which to query support.

packageFamilyName
String

The package for which to query support.

Returns

A value that indicates whether an application can be activated for the file.

Attributes

Remarks

This API may also be called from Windows desktop application.

Both Windows desktop application and Universal Windows Platform (UWP) app are considered.

See also

Applies to