Class Metered

Metered class

提供设置计量密钥的方法。

public class Metered

方法

姓名描述
static GetConsumptionCredit()获得消费积分
static GetConsumptionQuantity()获取消费文件大小
static ResetMeteredKey()删除之前设置的 license
static SetMeteredKey(string, string)设置计量公钥和私钥

例子

在此示例中,将尝试设置计量公钥和私钥

[C#]

Metered.SetMeteredKey("PublicKey", "PrivateKey");


[Visual Basic]

Metered.SetMeteredKey("PublicKey", "PrivateKey")

也可以看看