Metered Class

Provides methods to work with metered licensing.
Inheritance Hierarchy
SystemObject
  GroupDocs.AssemblyMetered

Namespace:  GroupDocs.Assembly
Assembly:  GroupDocs.Assembly (in GroupDocs.Assembly.dll) Version: 20.3
Syntax
public class Metered

The Metered type exposes the following members.

Constructors
  NameDescription
Public methodMetered
Creates a new instance of this class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberGetConsumptionCredit
Returns the currently consumed number of credits.
Public methodStatic memberGetConsumptionQuantity
Returns the currently consumed number of megabytes.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetMeteredKey
Enables metered licensing for the component by specifying appropriate public and private metered keys.
Public methodToString (Inherited from Object.)
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