Class Metered
Class Metered
名称: Aspose.Email 会議: Aspose.Email.dll (25.7.0)
測定キーを設定する方法を提供します。
public class MeteredInheritance
Examples
この例では、公的および民間の鍵を測定しようとする試みが行われます。
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")Constructors
Metered()
このクラスの新しいインスタンスを始める。
public Metered()Properties
IsBillingServiceRun
public static bool IsBillingServiceRun { get; }不動産価値
Methods
GetConsumptionCredit()
消費者クレジット
public static decimal GetConsumptionCredit()Returns
消費量
GetConsumptionQuantity()
消費ファイルサイズ
public static decimal GetConsumptionQuantity()Returns
消費量
GetProductName()
public string GetProductName()Returns
IsMeteredLicensed()
許可されているかどうかを確認する
public static bool IsMeteredLicensed()Returns
真実か偽りか
SetMeteredKey(ストリップ、ストリップ)
公開とプライベートの鍵を設定します。あなたが測定されたライセンスを購入する場合、アプリケーションを開始するとき、このAPIは呼ばれるべきです、通常、これは十分です。しかし、消費データを常にアップロードできず、24時間を超える場合、ライセンスは評価状態に設定されます。このようなケースを避けるには、ライセンスの状態を定期的にチェックし、評価の状態である場合は、再びこのAPIを呼びます。
public void SetMeteredKey(string publicKey, string privateKey)Parameters
publicKey string
公共の鍵
privateKey string
プライベートキー