GetConsumptionQuantity

Metered.GetConsumptionQuantity method

Mengambil jumlah MB yang diproses.

public static decimal GetConsumptionQuantity()

Nilai Pengembalian

Nilai desimal yang mewakili kuantitas konsumsi.

Contoh

Contoh berikut menunjukkan cara mengambil jumlah MB yang diproses.

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

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

decimal mbProcessed = Metered.GetConsumptionQuantity();

Lihat juga