GetConsumptionQuantity

Metered.GetConsumptionQuantity method

检索已处理的 MB 数量。

public static decimal GetConsumptionQuantity()

返回值

表示消耗量的十进制值。

例子

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

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

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

decimal mbProcessed = Metered.GetConsumptionQuantity();

也可以看看