Class Metered
Class Metered
名称: Aspose.OCR 集合: Aspose.OCR.dll (25.4.0)
提供设置测量密钥的方法。
public class Metered
Inheritance
继承人
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
消费量。
GetConsumptionQuantity()
获取消费文件大小。
public static decimal GetConsumptionQuantity()
Returns
消费量。
SetMeteredKey(字符串, string)
设置公共和私人密钥。如果您购买测量许可证,在启动应用程序时,该 API 应该被称为,通常,这就足够了。但是,如果总是无法上传消费数据,超过24小时,许可证将设置到评估状态,为了避免这种情况,您应该定期检查许可证状态,如果是评估状态,请再次呼叫此API。
public void SetMeteredKey(string publicKey, string privateKey)
Parameters
publicKey
string
公共钥匙
privateKey
string
隐私钥匙