DevicesLicense.activateActivationKey Method¶
Module: DevicesLicense
Definition¶
Activates a license file using an activation key and saves the license to a file.
@staticmethod
activate_activation_key(hardware_code: str, activation_key: str, commentary: str, path: str) -> None
Parameters
hardware_code
strin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activation_key
strin The activation key.commentary
strin Commentary associated to this license activation, generally the host name.path
strin Path to the retrieved license file.
Exceptions
An error has occurred during Devices Library execution.
static void activateActivationKey(String? hardwareCode, String? activationKey, String? commentary, String? path)
Parameters
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey
Stringin The activation key.commentary
Stringin Commentary associated to this license activation, generally the host name.path
Stringin Path to the retrieved license file.
Exceptions
An error has occurred during Devices Library execution.
public static void ActivateActivationKey(string hardwareCode, string activationKey, string commentary, string path)
Parameters
hardwareCode
stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey
stringin The activation key.commentary
stringin Commentary associated to this license activation, generally the host name.path
stringin Path to the retrieved license file.
Exceptions
An error has occurred during Devices Library execution.
public static void activateActivationKey(String hardwareCode, String activationKey, String commentary, String path) throws DevicesException
Parameters
hardwareCode
Stringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey
Stringin The activation key.commentary
Stringin Commentary associated to this license activation, generally the host name.path
Stringin Path to the retrieved license file.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_ActivateActivationKey (
const char * hardwareCode,
const char * activationKey,
const char * commentary,
const char * path)
Parameters
hardwareCode
const char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKey
const char *in The activation key.commentary
const char *in Commentary associated to this license activation, generally the host name.path
const char *in Path to the retrieved license file.
Returns