.. index:: 
  !DocumentLibrary.getVersionEx Method
  
.. _id3_document_document_library_get_version_ex_class_method:

===============================================================================
DocumentLibrary.getVersionEx Method
===============================================================================

Module: :ref:`DocumentLibrary<id3_document_document_library_class>`

Definition
----------

Retrieves the library version as a structure.


.. tab-set::

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

      .. code:: Python

        @staticmethod
        get_version_ex() -> LibVersion

      **Returns**

        .. line-block::

          :ref:`LibVersion<id3_document_lib_version_struct>`
          The version.

      **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 LibVersion getVersionEx()

      **Returns**

        .. line-block::

          :ref:`LibVersion<id3_document_lib_version_struct>`
          The version.

      **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 LibVersion GetVersionEx()

      **Returns**

        .. line-block::

          :ref:`LibVersion<id3_document_lib_version_struct>`
          The version.

      **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 LibVersion getVersionEx() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`LibVersion<id3_document_lib_version_struct>`
          The version.

      **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 getVersionEx() throws -> LibVersion

      **Returns**

        .. line-block::

          :ref:`LibVersion<id3_document_lib_version_struct>`
          The version.

      **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 id3DocumentLibrary_GetVersionEx (
            id3DocumentLibVersion * sVersion)

      **Parameters**

        .. line-block::

          ``sVersion`` :ref:`id3DocumentLibVersion *<id3_document_lib_version_struct>`
          :guilabel:`out` The version.


      **Returns**

        .. line-block::

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


