.. index:: 
  !DocumentInfoDictionary.clone Method
  
.. _id3_document_document_info_dictionary_clone_class_method:

===============================================================================
DocumentInfoDictionary.clone Method
===============================================================================

Module: :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`

Definition
----------

Clones the DocumentInfoDictionary object.


.. tab-set::

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

      .. code:: Python

        clone(self) -> DocumentInfoDictionary

      **Returns**

        .. line-block::

          :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`
          The newly created document info dictionary.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        DocumentInfoDictionary clone()

      **Returns**

        .. line-block::

          :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`
          The newly created document info dictionary.

      **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 DocumentInfoDictionary Clone()

      **Returns**

        .. line-block::

          :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`
          The newly created document info dictionary.

      **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 DocumentInfoDictionary clone() throws DocumentException

      **Returns**

        .. line-block::

          :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`
          The newly created document info dictionary.

      **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 func clone() throws -> DocumentInfoDictionary

      **Returns**

        .. line-block::

          :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`
          The newly created document info dictionary.

      **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 id3DocumentInfoDictionary_CopyTo (
            ID3_DOCUMENT_INFO_DICTIONARY hDocumentInfoDictionary, 
            ID3_DOCUMENT_INFO_DICTIONARY hDocumentInfoDictionaryDst)

      **Parameters**

        .. line-block::

          ``hDocumentInfoDictionary`` :ref:`ID3_DOCUMENT_INFO_DICTIONARY<id3_document_document_info_dictionary_class>`
          :guilabel:`in` Handle to the DocumentInfoDictionary object.

          ``hDocumentInfoDictionaryDst`` :ref:`ID3_DOCUMENT_INFO_DICTIONARY<id3_document_document_info_dictionary_class>`
          :guilabel:`out` The newly created document info dictionary.


      **Returns**

        .. line-block::

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


