StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) Method

Definition

Acquires a license for the specified downloadable content (DLC) add-on package for the current app.

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

Parameters

optionalPackage
Package Package Package

The DLC add-on package for which to acquire a license.

Returns

An asynchronous operation that, on successful completion, returns a StoreAcquireLicenseResult object that contains the license.

Remarks

Note

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

See also