StorePurchaseProperties 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
包含可傳遞給產品購買請求的額外細節,包括可在購買時顯示給使用者的產品名稱。
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
- 繼承
- 屬性
Windows 需求
| 規格需求 | Description |
|---|---|
| 裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
|
| API contract |
Windows.Services.Store.StoreContract (已於 v1.0 引進)
|
備註
StoreContext、StoreProduct、StoreSku 和 StoreAvailability 類別的 RequestPurchaseAsync 方法有過載,可接受此類參數。
建構函式
| 名稱 | Description |
|---|---|
| StorePurchaseProperties() |
初始化 StorePurchaseProperties 類別的新實例。 |
| StorePurchaseProperties(String) |
初始化 StorePurchaseProperties 類別的新實例。 這種過載功能提供選擇,讓使用者在購買時能指定顯示的產品名稱。 |
屬性
| 名稱 | Description |
|---|---|
| ExtendedJsonData |
取得或設定一個包含擴展資料的 JSON 格式字串,隨購買請求一同傳遞至 Microsoft Store。 |
| Name |
取得或設定在購買過程中顯示給使用者的產品名稱。 指定的名稱會出現在購買介面的標題列中。 |