AppInstallManager.GetIsApplicableForUserAsync(User, String, String) Method

Definition

Determines whether the specified app can be installed on the current computer or device for the specified user.

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)

Parameters

user
User

An object that identifies the user to specify for this operation.

productId
String

Platform::String

winrt::hstring

The product ID of the app that this method will check to determine if it can be installed.

skuId
String

Platform::String

winrt::hstring

The SKU ID of the app that this method will check to determine if it can be installed.

Returns

An asynchronous operation that, on successful completion, returns true if the app can be installed; otherwise false.

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
runFullTrust

Applies to