Class Metered

Class Metered

名称: Aspose.Words 集合: Aspose.Words.dll (25.4.0)

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

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

GetConsumptionCredit()

得到消费信用

public static decimal GetConsumptionCredit()

Returns

decimal

消费量

GetConsumptionQuantity()

获取消费文件大小

public static decimal GetConsumptionQuantity()

Returns

decimal

消费量

GetProductName()

返回产品名称

public string GetProductName()

Returns

string

产品名称

IsMeteredLicensed()

查看是否有许可证

public static bool IsMeteredLicensed()

Returns

bool

真实或虚假

SetMeteredKey(字符串, string)

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

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

公共钥匙

privateKey string

隐私钥匙

 中文
OSZAR »