Metered class

Provides methods to work with metered licensing.

public class Metered


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


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.


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


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

[Visual Basic]

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

See Also