.. index:: 
  !BiosealLicense.activate Method
  
.. _id3_bioseal_bioseal_license_activate_class_method:

===============================================================================
BiosealLicense.activate Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

Activates a license using customer credentials and a product reference and saves the license to a file.


.. code:: Dart

    static void activate(String? hardwareCode, String? login, String? password, String? productReference, 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.

    ``login`` String
    :guilabel:`in` The id3 account login.

    ``password`` String
    :guilabel:`in` The id3 account password.

    ``productReference`` String
    :guilabel:`in` The requested product reference.

    ``commentary`` String
    :guilabel:`in` Commentary associated to this license activation.

    ``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.



