AppInstallManager.GetFreeUserEntitlementAsync(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Grants a free entitlement for the specified app to the current user.
public:
virtual IAsyncOperation<GetEntitlementResult ^> ^ GetFreeUserEntitlementAsync(Platform::String ^ storeId, Platform::String ^ campaignId, Platform::String ^ correlationVector) = GetFreeUserEntitlementAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementAsync(winrt::hstring const& storeId, winrt::hstring const& campaignId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GetEntitlementResult> GetFreeUserEntitlementAsync(string storeId, string campaignId, string correlationVector);
function getFreeUserEntitlementAsync(storeId, campaignId, correlationVector)
Public Function GetFreeUserEntitlementAsync (storeId As String, campaignId As String, correlationVector As String) As IAsyncOperation(Of GetEntitlementResult)
Parameters
- 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
|