Metered

Metered class

Provides methods to work with metered licensing.

public class Metered

Constructors

Name Description
Metered() Creates a new instance of this class.

Methods

Name Description
SetMeteredKey(string, string) Enables metered licensing for the component by specifying appropriate public and private metered keys.
static GetConsumptionCredit() Returns the currently consumed number of credits.
static GetConsumptionQuantity() Returns the currently consumed number of megabytes.

Examples

In this example, an attempt to set metered public and private keys is made:

[C#]

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

[Visual Basic]

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

See Also