.. index:: 
  !BiosealLicense.activateActivationKey Method
  
.. _id3_bioseal_bioseal_license_activate_activation_key_class_method:

===============================================================================
BiosealLicense.activateActivationKey Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

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


.. code:: Dart

    static void activateActivationKey(String? hardwareCode, String? activationKey, 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.

    ``activationKey`` String
    :guilabel:`in` The activation key.

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

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


**Exceptions**

.. line-block::

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



