StoreContext.AcquireStoreLicenseForOptionalPackageAsync(Package) 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.
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.