Class MeteredLicense
Class MeteredLicense
名称: Aspose.Zip 組み合わせ: Aspose.Zip.dll (25.5.0)
測定キーを設定する方法を提供します。
public class MeteredLicense
Inheritance
相続人
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")
```</ms><java>
the component jar file:
```csharp
Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");
```</java>
## Constructors
### <a id="Aspose_Zip_MeteredLicense__ctor"></a> MeteredLicense\(\)
```csharp
public MeteredLicense()
Methods
GetConsumptionCredit()
消費クレジットを受け取る。
public static decimal GetConsumptionCredit()
Returns
消費されたクレジットポイントの数を返します。
GetConsumptionQuantity()
消費ファイルサイズ
public static decimal GetConsumptionQuantity()
Returns
消費したバイトの数を返します。
ResetMeteredKey()
以前の設定ライセンスを削除します。
public void ResetMeteredKey()
SetMeteredKey(ストリップ、ストリップ)
プライベートと公共の鍵を用意しています。
public void SetMeteredKey(string publicKey, string privateKey)
Parameters
publicKey
string
公共の鍵
privateKey
string
プライベートキー
Remarks
測定されたライセンスを購入した場合、このAPIはアプリケーションスタートアップで呼ばれるべきです、通常、これは十分です。しかし、測定された人が24時間の期間に消費データをアップロードできない場合、ライセンスは評価状態に設定されます。このようなケースを避けるには、定期的にライセンス状態をチェックする必要があります。