GetConsumptionCredit

Metered.GetConsumptionCredit method

检索已使用的信用额度

public static decimal GetConsumptionCredit()

例子

以下示例演示如何检索已处理的 MB 数量。

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

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

decimal usedCredits = Metered.GetConsumptionCredit();

也可以看看