الفئة Metered

Metered class

يوفر طرقًا لتعيين المفتاح المقيس.

public class Metered

المنشئات

الاسمالوصف
Metered()يُهيئ نسخة جديدة من هذه الفئة.

الطرق

الاسمالوصف
SetMeteredKey(string, string)يضبط المفتاح العام والخاص المتدرج
static GetConsumptionCredit()يحصل على رصيد الاستهلاك
static GetConsumptionQuantity()يحصل على حجم ملف الاستهلاك

أمثلة

في هذا المثال، سيتم محاولة ضبط المفتاح العام والخاص المتدرج

[C#]

Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");


[Visual Basic]

Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")

ملف jar المكوّن:

Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");

انظر أيضاً