AppInstallManager.GetFreeDeviceEntitlementAsync 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 all users on the current device.
public:
virtual IAsyncOperation<GetEntitlementResult ^> ^ GetFreeDeviceEntitlementAsync(Platform::String ^ storeId, Platform::String ^ campaignId, Platform::String ^ correlationVector) = GetFreeDeviceEntitlementAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GetEntitlementResult> GetFreeDeviceEntitlementAsync(winrt::hstring const& storeId, winrt::hstring const& campaignId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GetEntitlementResult> GetFreeDeviceEntitlementAsync(string storeId, string campaignId, string correlationVector);
function getFreeDeviceEntitlementAsync(storeId, campaignId, correlationVector)
Public Function GetFreeDeviceEntitlementAsync (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
|