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 はパートナー センターで使用でき、アドオンを表す StoreProduct の StoreId プロパティによって返されます。

Note

ダウンロード可能なコンテンツ (DLC) アドオンは、すべての開発者アカウントで使用できるわけではありません。

適用対象

こちらもご覧ください