StoreAvailability クラス

定義

購入できる製品 SKU の特定のインスタンスを表します。

public ref class StoreAvailability sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreAvailability final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreAvailability
Public NotInheritable Class StoreAvailability
継承
Object Platform::Object IInspectable StoreAvailability
属性

Windows の要件

要件 説明
デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Services.Store.StoreContract (v1.0 で導入)

注釈

ストア内の製品は、 製品SKUおよび可用性 オブジェクトの階層で整理されます。 製品は StoreProduct オブジェクトによって表されます。 各製品の SKU は StoreSku オブジェクトで表され、各 SKU の可用性は StoreAvailability オブジェクトによって表されます。 詳細については、「アプリ内購入と試用版の」を参照してください。

SKU の可用性にアクセスするには、関心のある StoreSku オブジェクトの Availabilities プロパティを使用します。

プロパティ

名前 説明
EndDate

現在の SKU の可用性の終了日を取得します。

ExtendedJsonData

現在の SKU の可用性に関する完全なデータを JSON 形式でストアから取得します。

Price

基本価格、現在の価格、販売情報など、現在の SKU の利用可能な価格情報を取得します。

StoreId

Microsoft Store カタログから現在の SKU 可用性のストア ID を取得します。

メソッド

名前 説明
RequestPurchaseAsync()

現在の SKU の可用性の購入を要求し、Microsoft Store経由でトランザクションを完了するために使用される UI を表示します。

Important

このメソッドは UI スレッドで呼び出す必要があります。

Important

アプリ内購入機能は、昇格されたアプリケーションではサポートされていません。

RequestPurchaseAsync(StorePurchaseProperties)

現在の SKU の可用性の購入を要求し、Microsoft Store経由でトランザクションを完了するために使用される UI を表示します。 この方法では、購入時にユーザーに表示する製品名など、Microsoft Storeの 1 つの一覧で表される製品の大規模なカタログ内の特定のオファーの追加の詳細を指定するオプションを提供します。

Important

このメソッドは UI スレッドで呼び出す必要があります。

Important

アプリ内購入機能は、昇格されたアプリケーションではサポートされていません。

適用対象

こちらもご覧ください