com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class Metered



  • public class Metered
    extends Object

    Provides methods to set metered key.


      In this example, an attempt will be made to set metered public and private key
       <ms>
      <pre>
      [C#]
    
     	Metered metered = new Metered();
     	metered.SetMeteredKey("PublicKey", "PrivateKey");
    
    
     	[Visual Basic]
    
     	Dim metered As Metered = New Metered
     	metered.SetMeteredKey("PublicKey", "PrivateKey")
      </pre>
      </ms>
       <java>
      the component jar file:
      <pre>
     	Metered metered = new Metered();
     	metered.setMeteredKey("PublicKey", "PrivateKey");
      </pre>
      </java>
      

    • Constructor Detail

      • Metered

        public Metered()
    • Method Detail

      • resetMeteredKey

        public final void resetMeteredKey()

        Removes previously setup license.

      • setMeteredKey

        public final void setMeteredKey(String publicKey,
                                        String privateKey)
                                 throws Exception

        Sets the metered public and private keys.

        Parameters:
        publicKey - The public key.
        privateKey - The private key.
        Throws:
        Exception