 |
LicenseException Class |
Thrown when
LicenseKey is set to a value that cannot
be decoded, does not match this product, targets an older major version, or has
expired. All license-related failures surface as this single type; host code can
switch on
Message to distinguish causes.
Inheritance HierarchySystemObject
SystemException
SelectPdf.UniversalLicenseException
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic class LicenseException : Exception
Public Class LicenseException
Inherits Exception
The LicenseException type exposes the following members.
Constructors
Exampletry
{
SelectPdf.Universal.GlobalProperties.LicenseKey = "invalid-key";
new SelectPdf.Universal.HtmlToPdf().ConvertUrl("https://www.google.com");
}
catch (SelectPdf.Universal.LicenseException ex)
{
System.Console.WriteLine(ex.Message);
}Try
SelectPdf.Universal.GlobalProperties.LicenseKey = "invalid-key"
Call New SelectPdf.Universal.HtmlToPdf().ConvertUrl("https://www.google.com")
Catch ex As SelectPdf.Universal.LicenseException
System.Console.WriteLine(ex.Message)
End Try
See Also