Metered

Metered class

Provides methods to license the component with Metered license.

public class Metered

Constructors

Name Description
Metered() Initializes a new instance of the Metered class.

Methods

Name Description
SetMeteredKey(string, string) Activates product with Metered keys.
static GetConsumptionCredit() Retrieves count of credits consumed.
static GetConsumptionQuantity() Retrieves amount of MBs processed.

Remarks

Learn more

Examples

Following example demonstrates how to activate product with Metered keys.

string publicKey = "Public Key";
string privateKey = "Private Key";

Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);

See Also