StoreContext.CanAcquireStoreLicenseAsync(String) StoreContext.CanAcquireStoreLicenseAsync(String) StoreContext.CanAcquireStoreLicenseAsync(String) StoreContext.CanAcquireStoreLicenseAsync(String) StoreContext.CanAcquireStoreLicenseAsync(String) Method

Definition

Gets a value that indicates whether a license can be acquired for the specified downloadable content (DLC) add-on of the current app for the current user.

public : IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseAsync(Platform::String productStoreId)
IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseAsync(winrt::hstring productStoreId) const;
public IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseAsync(String productStoreId)
Public Function CanAcquireStoreLicenseAsync(productStoreId As String) As IAsyncOperation(Of StoreCanAcquireLicenseResult)
Windows.Services.Store.StoreContext.canAcquireStoreLicenseAsync(productStoreId).done( /* Your success and error handlers */ );

Parameters

productStoreId
String String String

The Store ID of the DLC add-on to check.

Returns

An asynchronous operation that, on successful completion, returns a StoreCanAcquireLicenseResult object that indicates whether the license can be acquired.

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Services.Store.StoreContract (introduced v4)

Remarks

The Store ID for an add-on is available in Partner Center, and it is returned by the StoreId property of the StoreProduct that represents the add-on.

Note

Downloadable content (DLC) add-on are not available to all developer accounts.

See also