StoreContext.CanAcquireStoreLicenseAsync(String) 方法

定义

获取一个值,该值指示是否可以为当前用户的当前应用 (DLC) 加载项获取指定可下载内容的许可证。

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)

参数

productStoreId
String

Platform::String

winrt::hstring

要检查的 DLC 加载项的应用商店 ID。

返回

异步操作在成功完成后返回 一个 StoreCanAcquireLicenseResult 对象,该对象指示是否可以获取许可证。

属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Services.Store.StoreContract (在 v3.0 中引入)

注解

加载项的应用商店 ID 在合作伙伴中心可用,它由表示加载项的 StoreProductStoreId 属性返回。

注意

(DLC) 加载项的可下载内容并非适用于所有开发人员帐户。

适用于

另请参阅