AppInstallManager.GetIsApplicableAsync(String, String) 方法

定义

确定是否可以在当前计算机或设备上安装指定的应用。

public:
 virtual IAsyncOperation<bool> ^ GetIsApplicableAsync(Platform::String ^ productId, Platform::String ^ skuId) = GetIsApplicableAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsApplicableAsync(winrt::hstring const& productId, winrt::hstring const& skuId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsApplicableAsync(string productId, string skuId);
function getIsApplicableAsync(productId, skuId)
Public Function GetIsApplicableAsync (productId As String, skuId As String) As IAsyncOperation(Of Boolean)

参数

productId
String

Platform::String

winrt::hstring

此方法将检查以确定是否可以安装的应用的产品 ID。

skuId
String

Platform::String

winrt::hstring

此方法将检查应用的 SKU ID,以确定是否可以安装它。

返回

如果可以安装应用,则成功完成后返回 true 的异步操作;否则为 false。

属性

Windows 要求

应用功能
runFullTrust

适用于