StoreProductPagedQueryResult StoreProductPagedQueryResult StoreProductPagedQueryResult StoreProductPagedQueryResult StoreProductPagedQueryResult Class


Provides response data for a paged request to retrieve details about products that can be purchased from within the current app.

public : sealed class StoreProductPagedQueryResult : IStoreProductPagedQueryResult
struct winrt::Windows::Services::Store::StoreProductPagedQueryResult : IStoreProductPagedQueryResult
public sealed class StoreProductPagedQueryResult : IStoreProductPagedQueryResult
Public NotInheritable Class StoreProductPagedQueryResult Implements IStoreProductPagedQueryResult
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)


The StoreContext.GetAssociatedStoreProductsWithPagingAsync and StoreContext.GetUserCollectionWithPagingAsync methods return an object of this type.

After you have a StoreProductPagedQueryResult object, you can retrieve the object that contains the next page of results by using the GetNextAsync method.


ExtendedError ExtendedError ExtendedError ExtendedError ExtendedError

Gets the error code for the request, if the operation encountered an error.

public : HResult ExtendedError { get; }
HResult ExtendedError();
public Exception ExtendedError { get; }
Public ReadOnly Property ExtendedError As Exception
var exception = storeProductPagedQueryResult.extendedError;
Exception Exception Exception

The error code for the request.


If the current user is not signed in to the Store, this property returns the error code 0x80070525 (ERROR_NO_SUCH_USER).

See Also

HasMoreResults HasMoreResults HasMoreResults HasMoreResults HasMoreResults

Gets a value that indicates whether there are additional pages of results. To get the next page of results, use the GetNextAsync method.

public : Platform::Boolean HasMoreResults { get; }
bool HasMoreResults();
public bool HasMoreResults { get; }
Public ReadOnly Property HasMoreResults As bool
var bool = storeProductPagedQueryResult.hasMoreResults;
bool bool bool

True if there are additional pages of results; otherwise, false.

Products Products Products Products Products

Gets the collection of products returned by the request.

public : IMapView<Platform::String, StoreProduct> Products { get; }
IMapView<winrt::hstring, StoreProduct> Products();
public IReadOnlyDictionary<string, StoreProduct> Products { get; }
Public ReadOnly Property Products As IReadOnlyDictionary<string, StoreProduct>
var iReadOnlyDictionary = storeProductPagedQueryResult.products;
IReadOnlyDictionary<string, StoreProduct> IReadOnlyDictionary<string, StoreProduct> IReadOnlyDictionary<string, StoreProduct>

A dictionary of key and value pairs, where each key is a Store ID for the product and the value is a StoreProduct object that represents the add-on.


GetNextAsync() GetNextAsync() GetNextAsync() GetNextAsync() GetNextAsync()

Returns the next page of results. To determine if there are more pages of results, use the HasMoreResults property.

public : IAsyncOperation<StoreProductPagedQueryResult> GetNextAsync()
IAsyncOperation<StoreProductPagedQueryResult> GetNextAsync() const;
public IAsyncOperation<StoreProductPagedQueryResult> GetNextAsync()
Public Function GetNextAsync() As IAsyncOperation( Of StoreProductPagedQueryResult )
Windows.Services.Store.StoreProductPagedQueryResult.getNextAsync().done( /* Your success and error handlers */ );

An asynchronous operation that, on successful completion, returns a StoreProductPagedQueryResult object that provides the next page of results.