Metered

Metered class

メータリング キーを設定するメソッドを提供します。

public class Metered

コンストラクター

名前説明
Metered()デフォルトのコンストラクター。

メソッド

名前説明
SetMeteredKey(string, string)従量制の公開鍵と秘密鍵を設定します
static GetConsumptionCredit()消費クレジットを取得
static GetConsumptionQuantity()消費ファイルサイズを取得

この例では、従量制の公開鍵と秘密鍵を設定しようとします

[C#]

Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");


[Visual Basic]

Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")

関連項目