AppInstallManager.GetFreeUserEntitlementForUserAsync Method

Definition

Grants a free entitlement for the specified app to the specified user.

public:
 virtual IAsyncOperation<GetEntitlementResult ^> ^ GetFreeUserEntitlementForUserAsync(User ^ user, Platform::String ^ storeId, Platform::String ^ campaignId, Platform::String ^ correlationVector) = GetFreeUserEntitlementForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementForUserAsync(User const& user, winrt::hstring const& storeId, winrt::hstring const& campaignId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementForUserAsync(User user, string storeId, string campaignId, string correlationVector);
function getFreeUserEntitlementForUserAsync(user, storeId, campaignId, correlationVector)
Public Function GetFreeUserEntitlementForUserAsync (user As User, storeId As String, campaignId As String, correlationVector As String) As IAsyncOperation(Of GetEntitlementResult)

Parameters

user
User

A Windows.System.User object that represents the user to which you want to grant the entitlement.

storeId
String

Platform::String

winrt::hstring

The Store ID of the app for which you want to grant the entitlement.

campaignId
String

Platform::String

winrt::hstring

The ID of the campaign that is associated with the entitlement.

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 a GetEntitlementResult object that indicates the status of the entitlement grant.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
runFullTrust

Applies to