Class Metered

Class Metered

名称: Aspose.Imaging 收藏: Aspose.Imaging.dll (25.4.0)

提供集成方法

[ComVisible(false)]
public class Metered

Inheritance

object Metered

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

在此例子中,将尝试设置标记的公共和私人密钥。

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

Constructors

Metered()

启动这个班级的新例子。

public Metered()

Methods

Equals(对象)

确定所指定的 System.Object 是否相当于此例。

public override bool Equals(object obj)

Parameters

obj object

系统.对象与这个例子进行比较。

Returns

bool

“真实”如果指定的 System.Object 等于此例;否则,“虚假”。

GetConsumptionCredit()

得到消费信用

public static decimal GetConsumptionCredit()

Returns

decimal

消费量

GetConsumptionQuantity()

获取消费文件大小

public static decimal GetConsumptionQuantity()

Returns

decimal

消费量

SetMeteredKey(字符串, string)

设置公共和私人密钥。如果您购买测量许可证,在启动应用程序时,该 API 应该被称为,通常,这就足够了。但是,如果总是无法上传消费数据,超过24小时,许可证将设置到评估状态,为了避免这种情况,您应该定期检查许可证状态,如果是评估状态,请再次呼叫此API。

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

公共钥匙

privateKey string

隐私钥匙

看也

Metered

 中文