Share via


AppInstallManager.GetIsAppAllowedToInstallForUserAsync Method

Definition

Determines whether the specified app has permission to install on the current computer or device for the specified user, with the option to generate telemetry data.

public:
 virtual IAsyncOperation<bool> ^ GetIsAppAllowedToInstallForUserAsync(User ^ user, Platform::String ^ productId, Platform::String ^ skuId, Platform::String ^ catalogId, Platform::String ^ correlationVector) = GetIsAppAllowedToInstallForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsAppAllowedToInstallForUserAsync(User const& user, winrt::hstring const& productId, winrt::hstring const& skuId, winrt::hstring const& catalogId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsAppAllowedToInstallForUserAsync(User user, string productId, string skuId, string catalogId, string correlationVector);
function getIsAppAllowedToInstallForUserAsync(user, productId, skuId, catalogId, correlationVector)
Public Function GetIsAppAllowedToInstallForUserAsync (user As User, productId As String, skuId As String, catalogId As String, correlationVector 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 has permission to be installed.

skuId
String

Platform::String

winrt::hstring

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

catalogId
String

Platform::String

winrt::hstring

The catalog ID of the app that this method will check to determine if it has permission to be installed.

correlationVector
String

Platform::String

winrt::hstring

A correlation vector string that can be used to generate telemetry data.

Returns

An asynchronous operation that, on successful completion, returns true if the app has permission to 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