Class Metered
Class Metered
名称: Aspose.Html セットアップ: Aspose.HTML.dll (25.4.0)
測定キーを設定する方法を提供します。
[ComVisible(true)]
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")
```</ms><java>
the component jar file:
```csharp
Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");
```</java>
## Constructors
### <a id="Aspose_Html_Metered__ctor"></a> Metered\(\)
Initializes a new instance of this class.
```csharp
public Metered()
Methods
GetConsumptionCredit()
消費者クレジット
public static decimal GetConsumptionCredit()
Returns
消費量
GetConsumptionQuantity()
消費ファイルサイズ
public static decimal GetConsumptionQuantity()
Returns
消費量
IsMeteredLicensed()
許可されているかどうかを確認する
public static bool IsMeteredLicensed()
Returns
真実か偽りか
SetMeteredKey(ストリップ、ストリップ)
公開とプライベートの鍵を設定します。あなたが測定されたライセンスを購入する場合、アプリケーションを開始するとき、このAPIは呼ばれるべきです、通常、これは十分です。しかし、消費データを常にアップロードできず、24時間を超える場合、ライセンスは評価状態に設定されます。このようなケースを避けるには、ライセンスの状態を定期的にチェックし、評価の状態である場合は、再びこのAPIを呼びます。
public void SetMeteredKey(string publicKey, string privateKey)
Parameters
publicKey
string
公共の鍵
privateKey
string
プライベートキー