StoreContext.CanAcquireStoreLicenseAsync(String) 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.
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:
virtual IAsyncOperation<StoreCanAcquireLicenseResult ^> ^ CanAcquireStoreLicenseAsync(Platform::String ^ productStoreId) = CanAcquireStoreLicenseAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseAsync(winrt::hstring const& productStoreId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreCanAcquireLicenseResult> CanAcquireStoreLicenseAsync(string productStoreId);
function canAcquireStoreLicenseAsync(productStoreId)
Public Function CanAcquireStoreLicenseAsync (productStoreId As String) As IAsyncOperation(Of StoreCanAcquireLicenseResult)
Parameters
- productStoreId
-
String
Platform::String
winrt::hstring
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.
- Attributes
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Services.Store.StoreContract (introduced in v3.0)
|
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.