.. index:: 
  !DocumentLicense.getLicenseType Method
  
.. _id3_document_document_license_get_license_type_class_method:

===============================================================================
DocumentLicense.getLicenseType Method
===============================================================================

Module: :ref:`DocumentLicense<id3_document_document_license_class>`

Definition
----------

Retrieves the license type.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        @staticmethod
        get_license_type() -> LicenseType

      **Returns**

        .. line-block::

          :ref:`LicenseType<id3_document_license_type_enum>`
          The license type.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        static LicenseType getLicenseType()

      **Returns**

        .. line-block::

          :ref:`LicenseType<id3_document_license_type_enum>`
          The license type.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public static LicenseType GetLicenseType()

      **Returns**

        .. line-block::

          :ref:`LicenseType<id3_document_license_type_enum>`
          The license type.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public static LicenseType getLicenseType() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`LicenseType<id3_document_license_type_enum>`
          The license type.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public static func getLicenseType() throws -> LicenseType

      **Returns**

        .. line-block::

          :ref:`LicenseType<id3_document_license_type_enum>`
          The license type.

      **Exceptions**

        .. line-block::

          :ref:`DocumentException<id3_document_document_exception>`
          An error has occurred during Document Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3DocumentLicense_GetLicenseType (
            id3DocumentLicenseType * eDocumentLicenseType)

      **Parameters**

        .. line-block::

          ``eDocumentLicenseType`` :ref:`id3DocumentLicenseType *<id3_document_license_type_enum>`
          :guilabel:`out` The license type.


      **Returns**

        .. line-block::

          ``int``
          An error code.
          See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.


