.. index:: 
  !DocumentLicense.getModuleName Method
  
.. _id3_document_document_license_get_module_name_class_method:

===============================================================================
DocumentLicense.getModuleName Method
===============================================================================

Module: :ref:`DocumentLicense<id3_document_document_license_class>`

Definition
----------

Retrieves the name of the specified license module.


.. tab-set::

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

      .. code:: Python

        @staticmethod
        get_module_name(index: int) -> str

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``str``
          The license module name.

      **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 String getModuleName(int index)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **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 string GetModuleName(int index)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``string``
          The license module name.

      **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 String getModuleName(int index) throws DocumentException

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **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 getModuleName(index: Int32) throws -> String

      **Parameters**

        .. line-block::

          ``index`` Int32
          :guilabel:`in` Index of the module, starting from 0.


      **Returns**

        .. line-block::

          ``String``
          The license module name.

      **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_GetModuleName (
            int index, 
            char * name, 
            int * nameSize)

      **Parameters**

        .. line-block::

          ``index`` int
          :guilabel:`in` Index of the module, starting from 0.

          ``name`` char *
          :guilabel:`out` The license module name.

          ``nameSize`` int *
          :guilabel:`in` Size of the 'name' buffer. Receives the minimum required buffer size to hold the 'name' string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in 'name' (excluding terminating NULL character).


      **Returns**

        .. line-block::

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


