DevicesLicense.activateSerialKey Method¶
Module: DevicesLicense
Definition¶
Activates a license using a serial key and saves the license to a file.
@staticmethod
activate_serial_key(hardware_code: str, serial_key: str, commentary: str, path: str) -> None
Parameters
hardware_codestrin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serial_keystrin The serial key to activate.commentarystrin Commentary associated to this license activation, generally the host name.pathstrin Path to the license file.
Exceptions
An error has occurred during Devices Library execution.
static void activateSerialKey(String? hardwareCode, String? serialKey, String? commentary, String? path)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyStringin The serial key to activate.commentaryStringin Commentary associated to this license activation, generally the host name.pathStringin Path to the license file.
Exceptions
An error has occurred during Devices Library execution.
public static void ActivateSerialKey(string hardwareCode, string serialKey, string commentary, string path)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeystringin The serial key to activate.commentarystringin Commentary associated to this license activation, generally the host name.pathstringin Path to the license file.
Exceptions
An error has occurred during Devices Library execution.
public static void activateSerialKey(String hardwareCode, String serialKey, String commentary, String path) throws DevicesException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyStringin The serial key to activate.commentaryStringin Commentary associated to this license activation, generally the host name.pathStringin Path to the license file.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_ActivateSerialKey (
const char * hardwareCode,
const char * serialKey,
const char * commentary,
const char * path)
Parameters
hardwareCodeconst char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.serialKeyconst char *in The serial key to activate.commentaryconst char *in Commentary associated to this license activation, generally the host name.pathconst char *in Path to the license file.
Returns