Class Metered

Class Metered

名称: Aspose.Words 合計: Aspose.Words.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 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

decimal

消費量

GetConsumptionQuantity()

消費ファイルサイズ

public static decimal GetConsumptionQuantity()

Returns

decimal

消費量

GetProductName()

返品商品名

public string GetProductName()

Returns

string

製品名

IsMeteredLicensed()

許可されているかどうかを確認する

public static bool IsMeteredLicensed()

Returns

bool

真実か偽りか

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

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

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

公共の鍵

privateKey string

プライベートキー

 日本語