Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StoreContext.GetConsumableBalanceRemainingAsync(String) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?