public final class License extends Object
Provides methods to license the component. Learn more about licensing <a href="https://purchase.groupdocs.com/faqs/licensing">here</a>.
| Constructor and Description |
|---|
License() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLicensed()
Returns true if a valid license has been applied; false if the component is running in evaluation mode.
|
protected static boolean |
isValidLicense() |
static void |
resetLicense() |
void |
setLicense(InputStream licenseStream) |
void |
setLicense(com.aspose.ms.System.IO.Stream licenseStream)
Licenses the component.
|
void |
setLicense(String licensePath)
Licenses the component.
|
public boolean isLicensed()
protected static boolean isValidLicense()
public static void resetLicense()
public final void setLicense(InputStream licenseStream)
public final void setLicense(com.aspose.ms.System.IO.Stream licenseStream)
Licenses the component.
The following example demonstrates how to set a license passing Stream of the license file.using (FileStream licenseStream = new FileStream("LicenseFile.lic", FileMode.Open)) { GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License(); lic.SetLicense(licenseStream); }
licenseStream - The license stream.public void setLicense(String licensePath)
Licenses the component.
The following example demonstrates how to set a license passing a path to the license file.string licensePath = "GroupDocs.Conversion.lic"; GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License(); lic.SetLicense(licensePath);
licensePath - The license path.Copyright © 2024. All rights reserved.