MeteredLicense

MeteredLicense class

Provides methods to set metered key.

public class MeteredLicense

Constructors

NameDescription
MeteredLicense()The default constructor.

Methods

NameDescription
ResetMeteredKey()Removes previously setup license.
SetMeteredKey(string, string)Sets metered public and private keys.
static GetConsumptionCredit()Gets consumption credit.
static GetConsumptionQuantity()Gets consumption file size.

Examples

In this example, an attempt will be made to set metered public and private key

[C#]

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


[Visual Basic]

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

the component jar file:

Metered metered = new Metered();
metered.setMeteredKey("PublicKey", "PrivateKey");

See Also