Class Metered

Class Metered

名称: Aspose.Tasks 合計: Aspose.Tasks.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")
```</ms><java>
the component jar file:

```csharp
Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");
```</java>

## Constructors

### <a id="Aspose_Tasks_Metered__ctor"></a> Metered\(\)

```csharp
public Metered()

Methods

GetConsumptionCredit()

消費クレジットを受け取る。

public static decimal GetConsumptionCredit()

Returns

decimal

消費されたクレジットポイントの数を返します。

GetConsumptionQuantity()

消費ファイルサイズ

public static decimal GetConsumptionQuantity()

Returns

decimal

消費したバイトの数を返します。

IsLicensed()

製品がMeteredライセンスを使用して成功してライセンスされているかどうかを確認します。

public bool IsLicensed()

Returns

bool

ResetMeteredKey()

以前の設定ライセンスを削除します。

public void ResetMeteredKey()

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

プライベートと公共の鍵を用意しています。

public void SetMeteredKey(string publicKey, string privateKey)

Parameters

publicKey string

公共の鍵

privateKey string

プライベートキー

Remarks

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

 日本語