語言

StoreProductPagedQueryResult 類別

定義

提供分頁請求的回應資料,以取得目前應用程式中可購買的產品詳情。

public ref class StoreProductPagedQueryResult 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 StoreProductPagedQueryResult 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 StoreProductPagedQueryResult
Public NotInheritable Class StoreProductPagedQueryResult
繼承
Object Platform::Object IInspectable StoreProductPagedQueryResult
屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Services.Store.StoreContract (已於 v1.0 引進)

備註

StoreContext.GetAssociatedStoreProductsWithPagingAsync 與 StoreContext.GetUserCollectionWithPagingAsync 方法會回傳此類型的物件。

當你擁有 StoreProductPagedQueryResult 物件後,可以透過 GetNextAsync 方法取得包含下一頁結果的物件。

屬性

名稱 Description
ExtendedError

如果操作遇到錯誤,會取得請求的錯誤代碼。

HasMoreResults

會得到一個值,表示是否有額外的結果頁數。 要取得下一頁的結果,請使用 GetNextAsync 方法。

Products

會收到申請時退還的產品集合。

方法

名稱 Description
GetNextAsync()

返回下一頁的結果。 要判斷是否有更多結果頁面,請使用 HasMoreResults 屬性。

適用於