AppInstallManager.GetIsApplicableAsync(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否可以在当前计算机或设备上安装指定的应用。
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
|