GetConsumptionCredit

Metered.GetConsumptionCredit method

Retrieves count of credits consumed.

public static decimal GetConsumptionCredit()

Return Value

A decimal value that represents the consumption credit.

Examples

Following example demonstrates how to retrieve count of credits consumed.

string publicKey = "Public Key";
string privateKey = "Private Key";

Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);

decimal creditsConsumed = Metered.GetConsumptionCredit();

See Also