GetConsumptionCredit

Metered.GetConsumptionCredit method

استرداد عدد الاعتمادات المستهلكة.

public static long GetConsumptionCredit()

قيمة الإرجاع

عدد الاعتمادات المستهلكة.

أمثلة

المثال التالي يوضح كيفية استرداد عدد الاعتمادات المستهلكة.

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

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

decimal creditsConsumed = Metered.GetConsumptionCredit();

أنظر أيضا