Metered
Leave feedback
On this page
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:
[C#]
Metered metered = new Metered();
metered.SetMeteredKey("PublicKey", "PrivateKey");
[Visual Basic]
Dim metered As Metered = New Metered
metered.SetMeteredKey("PublicKey", "PrivateKey")
- namespace GroupDocs.Assembly
- assembly GroupDocs.Assembly
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.