DocumentLicense.activateActivationKey Method¶
Module: DocumentLicense
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_codestrin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activation_keystrin The activation key.commentarystrin Commentary associated to this license activation, generally the host name.pathstrin Path to the retrieved license file.
Exceptions
An error has occurred during Document Library execution.
static void activateActivationKey(String? hardwareCode, String? activationKey, String? commentary, String? path)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyStringin The activation key.commentaryStringin Commentary associated to this license activation, generally the host name.pathStringin Path to the retrieved license file.
Exceptions
An error has occurred during Document Library execution.
public static void ActivateActivationKey(string hardwareCode, string activationKey, string commentary, string path)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeystringin The activation key.commentarystringin Commentary associated to this license activation, generally the host name.pathstringin Path to the retrieved license file.
Exceptions
An error has occurred during Document Library execution.
public static void activateActivationKey(String hardwareCode, String activationKey, String commentary, String path) throws DocumentException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyStringin The activation key.commentaryStringin Commentary associated to this license activation, generally the host name.pathStringin Path to the retrieved license file.
Exceptions
An error has occurred during Document Library execution.
public static func activateActivationKey(hardwareCode: String, activationKey: String, commentary: String, path: String) throws
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyStringin The activation key.commentaryStringin Commentary associated to this license activation, generally the host name.pathStringin Path to the retrieved license file.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLicense_ActivateActivationKey (
const char * hardwareCode,
const char * activationKey,
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.activationKeyconst char *in The activation key.commentaryconst char *in Commentary associated to this license activation, generally the host name.pathconst char *in Path to the retrieved license file.
Returns