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
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for