Language

StorePurchaseProperties クラス

定義

購入時にユーザーに表示する製品名など、製品の購入要求に渡すことができる追加の詳細が含まれます。

public ref class StorePurchaseProperties sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Services.Store.StoreContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Services.Store.IStorePurchasePropertiesFactory, 65536, "Windows.Services.Store.StoreContract")]
/// [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 StorePurchaseProperties final
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Services.Store.StoreContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Services.Store.IStorePurchasePropertiesFactory), 65536, "Windows.Services.Store.StoreContract")]
[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 StorePurchaseProperties
function StorePurchaseProperties(name)
Public NotInheritable Class StorePurchaseProperties
継承
Object Platform::Object IInspectable StorePurchaseProperties
属性

Windows の要件

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

注釈

StoreContext、StoreProduct、StoreSku、StoreAvailability クラスの RequestPurchaseAsync メソッドには、この型の引数を受け取るオーバーロードがあります。

コンストラクター

Name 説明
StorePurchaseProperties()

StorePurchaseProperties クラスの新しいインスタンスを初期化します。

StorePurchaseProperties(String)

StorePurchaseProperties クラスの新しいインスタンスを初期化します。 このオーバーロードは、購入時にユーザーに表示される製品名を指定するオプションを提供します。

プロパティ

Name 説明
ExtendedJsonData

購入要求と共にMicrosoft Storeに渡す拡張データを含む JSON 形式の文字列を取得または設定します。

Name

購入時にユーザーに表示される製品名を取得または設定します。 指定した名前が購入 UI のタイトル バーに表示されます。

適用対象