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.

public:
 static IAsyncOperation<LaunchQuerySupportStatus> ^ QueryFileSupportAsync(StorageFile ^ file);
/// [Windows.Foundation.Metadata.Overload("QueryFileSupportAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile const& file);
[Windows.Foundation.Metadata.Overload("QueryFileSupportAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile file);
function queryFileSupportAsync(file)
Public Shared Function QueryFileSupportAsync (file As StorageFile) As IAsyncOperation(Of LaunchQuerySupportStatus)

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.

public:
 static IAsyncOperation<LaunchQuerySupportStatus> ^ QueryFileSupportAsync(StorageFile ^ file, Platform::String ^ packageFamilyName);
/// [Windows.Foundation.Metadata.Overload("QueryFileSupportWithPackageFamilyNameAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile const& file, winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.Overload("QueryFileSupportWithPackageFamilyNameAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryFileSupportAsync(StorageFile file, string packageFamilyName);
function queryFileSupportAsync(file, packageFamilyName)
Public Shared Function QueryFileSupportAsync (file As StorageFile, packageFamilyName As String) As IAsyncOperation(Of LaunchQuerySupportStatus)

Parameters

file
StorageFile

The file for which to query support.

packageFamilyName
String

Platform::String

winrt::hstring

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