Database.CheckLicenseFile(Integer) Method
Version: Available or changed with runtime version 1.0.
Checks a key in the license file of the system.
Note
This method is supported only in Business Central on-premises.
Syntax
Database.CheckLicenseFile(KeyNumber: Integer)
Note
This method can be invoked without specifying the data type name.
Parameters
KeyNumber
Type: Integer
The number of the key you want to check.
Remarks
The license file turns on or off different system capabilities. Use this method to check a key in the file for the current user. If the user has no access rights to the object, a message is displayed and the process is terminated.
If you omit this method, the user will have the ability to continue regardless of whether the appropriate license file is open.
Related information
Database Data Type
Get Started with AL
Developing Extensions