Skip to content
Back to top

# BiosealLicense.activateSerialKey Method

Module: BiosealLicense

## Definition

Activates a license using a serial key and saves the license to a file.

    static void activateSerialKey(String? hardwareCode, String? serialKey, 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.
`serialKey` String
in The serial key to activate.
`commentary` String
in Commentary associated to this license activation, generally the host name.
`path` String
in Path to the license file.

Exceptions

BiosealException
An error has occurred during Bioseal Library execution.