StoreProductPagedQueryResult
StoreProductPagedQueryResult
StoreProductPagedQueryResult
StoreProductPagedQueryResult
Class
Definition
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 : IStoreProductPagedQueryResultpublic sealed class StoreProductPagedQueryResult : IStoreProductPagedQueryResultPublic NotInheritable Class StoreProductPagedQueryResult Implements IStoreProductPagedQueryResult// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Store.StoreContract (introduced v1)
|
Remarks
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.
Properties
ExtendedError ExtendedError ExtendedError ExtendedError
Gets the error code for the request, if the operation encountered an error.
public : HResult ExtendedError { get; }public Exception ExtendedError { get; }Public ReadOnly Property ExtendedError As Exception// You can use this property in JavaScript.
- Value
- HResult Exception Exception Exception
The error code for the request.
- See Also
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; }public bool HasMoreResults { get; }Public ReadOnly Property HasMoreResults As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if there are additional pages of results; otherwise, false.
Products Products Products Products
Gets the collection of products returned by the request.
public : IMapView<string, StoreProduct> Products { get; }public IReadOnlyDictionary<string, StoreProduct> Products { get; }Public ReadOnly Property Products As IReadOnlyDictionary<string, StoreProduct>// You can use this property in JavaScript.
- Value
- IMapView<PlatForm::String, StoreProduct> 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.
Methods
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()public IAsyncOperation<StoreProductPagedQueryResult> GetNextAsync()Public Function GetNextAsync() As IAsyncOperation( Of StoreProductPagedQueryResult )// You can use this method in JavaScript.
An asynchronous operation that, on successful completion, returns a StoreProductPagedQueryResult object that provides the next page of results.