Class Metered

Class Metered

名称: Aspose.Page 合計: Aspose.Page.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 metered = new Metered();
metered.SetMeteredKey("PublicKey", "PrivateKey");
Dim metered As Metered = New Metered
metered.SetMeteredKey("PublicKey", "PrivateKey")

Constructors

Metered()

このクラスの新しいインスタンスを始める。

public Metered()

Methods

GetConsumptionCredit()

消費者クレジット

public static decimal GetConsumptionCredit()

Returns

decimal

消費量

GetConsumptionQuantity()

消費ファイルサイズ

public static decimal GetConsumptionQuantity()

Returns

decimal

消費量

SetMeteredKey(ストリップ、ストリップ)

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

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

公共の鍵

privateKey string

プライベートキー

 日本語