AppInstallManager.GetIsApplicableForUserAsync(User, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定用户是否可以在当前计算机或设备上安装指定的应用。
public:
virtual IAsyncOperation<bool> ^ GetIsApplicableForUserAsync(User ^ user, Platform::String ^ productId, Platform::String ^ skuId) = GetIsApplicableForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsApplicableForUserAsync(User const& user, winrt::hstring const& productId, winrt::hstring const& skuId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsApplicableForUserAsync(User user, string productId, string skuId);
function getIsApplicableForUserAsync(user, productId, skuId)
Public Function GetIsApplicableForUserAsync (user As User, productId As String, skuId As String) As IAsyncOperation(Of Boolean)
参数
- user
- User
一个 对象,用于标识要为此操作指定的用户。
- productId
-
String
Platform::String
winrt::hstring
此方法将检查用于确定是否可以安装的应用的产品 ID。
- skuId
-
String
Platform::String
winrt::hstring
此方法将检查应用的 SKU ID,以确定是否可以安装它。
返回
如果可以安装应用,则异步操作在成功完成时返回 true;否则为 false。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
应用功能 |
runFullTrust
|