Share via


StoreContext.GetConsumableBalanceRemainingAsync(String) Method

Definition

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

public:
 virtual IAsyncOperation<StoreConsumableResult ^> ^ GetConsumableBalanceRemainingAsync(Platform::String ^ productStoreId) = GetConsumableBalanceRemainingAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreConsumableResult> GetConsumableBalanceRemainingAsync(winrt::hstring const& productStoreId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreConsumableResult> GetConsumableBalanceRemainingAsync(string productStoreId);
function getConsumableBalanceRemainingAsync(productStoreId)
Public Function GetConsumableBalanceRemainingAsync (productStoreId As String) As IAsyncOperation(Of StoreConsumableResult)

Parameters

productStoreId
String

Platform::String

winrt::hstring

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.

Attributes

Remarks

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

Applies to

See also