.. index:: 
  !BiosealLicense.activateSerialKey Method
  
.. _id3_bioseal_bioseal_license_activate_serial_key_class_method:

===============================================================================
BiosealLicense.activateSerialKey Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

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


.. code:: Dart

    static void activateSerialKey(String? hardwareCode, String? serialKey, String? commentary, String? path)

**Parameters**

.. line-block::

    ``hardwareCode`` String
    :guilabel:`in` The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

    ``serialKey`` String
    :guilabel:`in` The serial key to activate.

    ``commentary`` String
    :guilabel:`in` Commentary associated to this license activation, generally the host name.

    ``path`` String
    :guilabel:`in` Path to the license file.


**Exceptions**

.. line-block::

    :ref:`BiosealException<id3_bioseal_bioseal_exception>`
    An error has occurred during Bioseal Library execution.



