Share via


StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) Method

Definition

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

public:
 virtual IAsyncOperation<StoreAcquireLicenseResult ^> ^ AcquireStoreLicenseForOptionalPackageAsync(Package ^ optionalPackage) = AcquireStoreLicenseForOptionalPackageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreAcquireLicenseResult> AcquireStoreLicenseForOptionalPackageAsync(Package const& optionalPackage);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreAcquireLicenseResult> AcquireStoreLicenseForOptionalPackageAsync(Package optionalPackage);
function acquireStoreLicenseForOptionalPackageAsync(optionalPackage)
Public Function AcquireStoreLicenseForOptionalPackageAsync (optionalPackage As Package) As IAsyncOperation(Of StoreAcquireLicenseResult)

Parameters

optionalPackage
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.

Attributes

Remarks

Note

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

Applies to

See also