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(ストリップ、ストリップ)
公開とプライベートの鍵を設定します。あなたが測定されたライセンスを購入する場合、アプリケーションを開始するとき、このAPIは呼ばれるべきです、通常、これは十分です。しかし、消費データを常にアップロードできず、24時間を超える場合、ライセンスは評価状態に設定されます。このようなケースを避けるには、ライセンスの状態を定期的にチェックし、評価の状態である場合は、再びこのAPIを呼びます。
public void SetMeteredKey(string publicKey, string privateKey)
Parameters
publicKey
string
公共の鍵
privateKey
string
プライベートキー