Class Metered
Contents
[
Hide
]Metered class
Licenses the product with a metered (pay-per-use) key and reports the consumption.
public class Metered
Constructors
| Name | Description |
|---|---|
| Metered() | Initializes a new instance of the Metered class. |
Properties
| Name | Description |
|---|---|
| static IsBillingServiceRun { get; } | Gets a value indicating whether the metered billing service is running. |
Methods
| Name | Description |
|---|---|
| GetBillingStatus() | Checks whether the billing service is available. |
| GetProductName() | Gets the name of the product the metered license is for. |
| SetMeteredKey(string, string) | Activates the metered license with the public and private keys. |
| static GetConsumptionCredit() | Gets the number of credits consumed. |
| static GetConsumptionQuantity() | Gets the amount of data processed under the metered license. |
| static IsMeteredLicensed() | Gets a value indicating whether a metered license is active. |
Examples
In this example, an attempt will be made to set metered public and private key
[C#]
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");
[Visual Basic]
Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")
the component jar file:
Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");
See Also
- namespace Aspose.Email
- assembly Aspose.Email