Share via


AppInstallManager.GetIsAppAllowedToInstallAsync Method

Definition

Overloads

GetIsAppAllowedToInstallAsync(String, String, String, String)

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

GetIsAppAllowedToInstallAsync(String)

Determines whether the specified app has permission to install on the current computer or device.

GetIsAppAllowedToInstallAsync(String, String, String, String)

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

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

Parameters

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 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
runFullTrust

See also

Applies to

GetIsAppAllowedToInstallAsync(String)

Determines whether the specified app has permission to install on the current computer or device.

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

Parameters

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.

Returns

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

Attributes

Windows requirements

App capabilities
runFullTrust

See also

Applies to