StoreContext.RequestRateAndReviewAppAsync StoreContext.RequestRateAndReviewAppAsync StoreContext.RequestRateAndReviewAppAsync StoreContext.RequestRateAndReviewAppAsync StoreContext.RequestRateAndReviewAppAsync Method

Definition

Requests the user to rate and review the app. This method will display the UI for the user to select a Store rating and add an optional Store review for the product.

Important

This method must be called on the UI thread.

public : IAsyncOperation<StoreRateAndReviewResult> RequestRateAndReviewAppAsync()
IAsyncOperation<StoreRateAndReviewResult> RequestRateAndReviewAppAsync() const;
public IAsyncOperation<StoreRateAndReviewResult> RequestRateAndReviewAppAsync()
Public Function RequestRateAndReviewAppAsync() As IAsyncOperation(Of StoreRateAndReviewResult)
Windows.Services.Store.StoreContext.requestRateAndReviewAppAsync().done( /* Your success and error handlers */ );

Returns

An asynchronous operation that, on successful completion, returns a StoreRateAndReviewResult object that provides status and error info.

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Services.Store.StoreContract (introduced v4)

Exceptions

COMException COMException COMException

If the ErrorCode property of the exception has the value 0x80070578 (ERROR_INVALID_WINDOW_HANDLE), this indicates that the method was not called on the UI thread. If you are calling this method in a desktop application that uses the Desktop Bridge, this can also indicate that you did not configure the StoreContext object to specify which application window is the owner window for modal dialogs shown by this method. For more information, see this article.