StoreContext.CanAcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.CanAcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.CanAcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.CanAcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.CanAcquireStoreLicenseForOptionalPackageAsync(Package) Method

Definition

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

public : IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseForOptionalPackageAsync(Package optionalPackage)
IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseForOptionalPackageAsync(Package optionalPackage) const;
public IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseForOptionalPackageAsync(Package optionalPackage)
Public Function CanAcquireStoreLicenseForOptionalPackageAsync(optionalPackage As Package) As IAsyncOperation(Of StoreCanAcquireLicenseResult)
Windows.Services.Store.StoreContext.canAcquireStoreLicenseForOptionalPackageAsync(optionalPackage).done( /* Your success and error handlers */ );

Parameters

optionalPackage
Package Package Package

The DLC package 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

Note

Downloadable content (DLC) packages are not available to all developer accounts.

See also