StoreContext.GetConsumableBalanceRemainingAsync(String) StoreContext.GetConsumableBalanceRemainingAsync(String) StoreContext.GetConsumableBalanceRemainingAsync(String) StoreContext.GetConsumableBalanceRemainingAsync(String) StoreContext.GetConsumableBalanceRemainingAsync(String) Method

Definition

Gets the remaining balance for the specified consumable add-on for the current app.

public : IAsyncOperation<StoreConsumableResult> GetConsumableBalanceRemainingAsync(Platform::String productStoreId)
IAsyncOperation<StoreConsumableResult> GetConsumableBalanceRemainingAsync(winrt::hstring productStoreId) const;
public IAsyncOperation<StoreConsumableResult> GetConsumableBalanceRemainingAsync(String productStoreId)
Public Function GetConsumableBalanceRemainingAsync(productStoreId As String) As IAsyncOperation(Of StoreConsumableResult)
Windows.Services.Store.StoreContext.getConsumableBalanceRemainingAsync(productStoreId).done( /* Your success and error handlers */ );

Parameters

productStoreId
String String String

The Store ID for the add-on (as provided by the StoreId property of the StoreProduct that represents the add-on).

Returns

An asynchronous operation that, on successful completion, returns a StoreConsumableResult that provides the remaining balance and other info.

Remarks

For more information about using this method, including a code example, see Enable consumable add-on purchases.

See also