com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ILicense

  • All Known Implementing Classes:
    License


    public interface ILicense

    Provides methods to license the component.


     In this example, an attempt will be made to find a license file named MyLicense.lic
     in the folder that contains the component, in the folder that contains the calling assembly,
     in the folder of the entry assembly and then in the embedded resources of the calling assembly.
     
    
     License license = new License();
     license.setLicense("MyLicense.lic");
     
    • Method Detail

      • setLicense

        void setLicense(java.lang.String licenseName)

        Licenses the component.


         In this example, an attempt will be made to find a license file named MyLicense.lic
         in the folder that contains the component, in the folder that contains the calling assembly,
         in the folder of the entry assembly and then in the embedded resources of the calling assembly.
         
         
         License license = new License();
         license.setLicense("MyLicense.lic");
         
        Parameters:
        licenseName - Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode.


        <p>Tries to find the license in the following locations:</p> <p>1. Explicit path.</p> <p>2. The folder of the component assembly.</p> <p>3. The folder of the client's calling assembly.</p> <p>4. The folder of the entry assembly.</p> <p>5. An embedded resource in the client's calling assembly.</p> <p><b>Note:</b>On the .NET Compact Framework, tries to find the license only in these locations:</p> <p>1. Explicit path.</p> <p>2. An embedded resource in the client's calling assembly.</p>
      • setLicense

        void setLicense(java.io.InputStream stream)

        Licenses the component.


         
         
         License license = new License();
         license.setLicense(myStream);
         
        Parameters:
        stream - A stream that contains the license.


        <p>Use this method to load a license from a stream.</p>
      • resetLicense

        void resetLicense()

        Reset the license


         
         
         License license = new License();
         license.resetLicense();
         


        Use this method to reset license in component
      • isLicensed

        @Deprecated
        boolean isLicensed()
        Deprecated. The property is deprecated and will be removed after release of version 19.12.

        Check if licence is applied to component

        Returns:
        True if component is licensed, otherwise false