StoreProductQueryResult StoreProductQueryResult StoreProductQueryResult StoreProductQueryResult StoreProductQueryResult Class


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

public : sealed class StoreProductQueryResult : IStoreProductQueryResult
struct winrt::Windows::Services::Store::StoreProductQueryResult : IStoreProductQueryResult
public sealed class StoreProductQueryResult : IStoreProductQueryResult
Public NotInheritable Class StoreProductQueryResult Implements IStoreProductQueryResult
// 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 following methods of the StoreContext class return an object of this type:


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 = storeProductQueryResult.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

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 = storeProductQueryResult.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 add-on and the value is a StoreProduct object that represents the add-on.