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:
 virtual IAsyncOperation<StoreRateAndReviewResult ^> ^ RequestRateAndReviewAppAsync() = RequestRateAndReviewAppAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreRateAndReviewResult> RequestRateAndReviewAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreRateAndReviewResult> RequestRateAndReviewAppAsync();
function requestRateAndReviewAppAsync()
Public Function RequestRateAndReviewAppAsync () As IAsyncOperation(Of StoreRateAndReviewResult)

Returns

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

Attributes

Exceptions

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 <xref href="Windows.Services.Store.StoreContext?text=StoreContext" /> object to specify which application window is the owner window for modal dialogs shown by this method. For more information, see this article.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Services.Store.StoreContract (introduced in v4.0)

Applies to