Launcher.QueryFileSupportAsync 方法

定義

多載

QueryFileSupportAsync(StorageFile)

以非同步方式查詢是否可以為指定的檔案啟用應用程式。

QueryFileSupportAsync(StorageFile, String)

以非同步方式查詢是否可針對指定的檔案啟用具有指定套件名稱的應用程式。

QueryFileSupportAsync(StorageFile)

以非同步方式查詢是否可以為指定的檔案啟用應用程式。

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)

參數

file
StorageFile

要查詢支援的檔案。

傳回

值,指出是否可以為檔案啟用應用程式。

屬性

備註

您也可以從 Windows 傳統型應用程式呼叫此 API。

Windows 傳統型應用程式和通用 Windows 平臺 (UWP) 應用程式都會被視為。

另請參閱

適用於

QueryFileSupportAsync(StorageFile, String)

以非同步方式查詢是否可針對指定的檔案啟用具有指定套件名稱的應用程式。

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)

參數

file
StorageFile

要查詢支援的檔案。

packageFamilyName
String

Platform::String

winrt::hstring

要查詢支援的套件。

傳回

值,指出是否可以為檔案啟用應用程式。

屬性

備註

您也可以從 Windows 傳統型應用程式呼叫此 API。

Windows 傳統型應用程式和通用 Windows 平臺 (UWP) 應用程式都會被視為。

另請參閱

適用於