Skip to content
Back to top

# BiosealLicense.activateActivationKey Method

Module: BiosealLicense

## Definition

Activates a license file using an activation key and saves the license to a file.

    static void activateActivationKey(String? hardwareCode, String? activationKey, String? commentary, String? path)

Parameters

`hardwareCode` String
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
`activationKey` String
in The activation key.
`commentary` String
in Commentary associated to this license activation, generally the host name.
`path` String
in Path to the retrieved license file.

Exceptions

BiosealException
An error has occurred during Bioseal Library execution.