类 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");
另见
- namespace Aspose.Font
- assembly Aspose.Font