com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class License



  • public class License
    extends Object
    Provides methods to license the component.
    • Constructor Detail

      • License

        public License()
        Initializes a new instance of this class.
    • Method Detail

      • setLicense

        public void setLicense(String licenseName)
                        throws Exception
        Licenses the component.
        Parameters:
        licenseName - Can be a full or short file name Use an empty string to switch to evaluation mode.
        Throws:
        Exception - Exception is thrown when License has Invalid edition type.
      • setLicense

        public void setLicense(InputStream stream)
                        throws Exception
        Licenses the component.
        Parameters:
        stream - A stream that contains the license.
        Throws:
        Exception - Exception is thrown when License has Invalid edition type.
      • setLicense

        public void setLicense(File licenseFile)
                        throws Exception
        Licenses the component.
        Parameters:
        licenseFile - representation of file pathname
        Throws:
        Exception - Exception is thrown when License is disabled.