StoreContext.GetStoreProductForCurrentAppAsync StoreContext.GetStoreProductForCurrentAppAsync StoreContext.GetStoreProductForCurrentAppAsync StoreContext.GetStoreProductForCurrentAppAsync StoreContext.GetStoreProductForCurrentAppAsync Method

Definition

Gets Microsoft Store listing info for the current app and provides access to a method that you can use to purchase the app for the current user.

public : IAsyncOperation<StoreProductResult> GetStoreProductForCurrentAppAsync()
IAsyncOperation<StoreProductResult> GetStoreProductForCurrentAppAsync() const;
public IAsyncOperation<StoreProductResult> GetStoreProductForCurrentAppAsync()
Public Function GetStoreProductForCurrentAppAsync() As IAsyncOperation(Of StoreProductResult)
Windows.Services.Store.StoreContext.getStoreProductForCurrentAppAsync().done( /* Your success and error handlers */ );
Returns

An asynchronous operation that, on successful completion, returns a StoreProductResult object that contains Microsoft Store listing info for the current app and any relevant error info.

Remarks

For more information about using this method, including a code example, see Get product info for apps and add-ons.

See Also