Method SetKey
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
SetKey(string)
Activates a license key for the whole process. Call it once at startup, before creating documents; it replaces any key set earlier or read from EnvironmentVariable.
public static LicenseInfo SetKey(string licenseKey)
Parameters
licenseKeystringThe key from your license email. Line breaks and spaces inside it are ignored.
Returns
- LicenseInfo
What the key licenses.
Remarks
The check is offline and takes a few milliseconds.
Exceptions
- PdfLicenseException
The key is damaged, was not issued by SoftZen Systems, has expired (trial keys), or only covers versions released before ReleaseDate. The message says which. The previous license state is kept.