Metered Class
Provides methods to license the component with Metered license.
Inheritance Hierarchy
SystemObject
  GroupDocs.WatermarkMetered

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

The Metered type exposes the following members.

Constructors
  NameDescription
Public methodMetered
Initializes a new instance of the Metered class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberCode exampleGetConsumptionCredit
Retrieves count of credits consumed.
Public methodStatic memberCode exampleGetConsumptionQuantity
Retrieves amount of MBs processed.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetMeteredKey
Activates product with Metered keys.
Public methodToString (Inherited from Object.)
Remarks
Learn more
Examples
Following example demonstrates how to activate product with Metered keys.
C#
string publicKey = "Public Key";
string privateKey = "Private Key";

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