.. index:: 
  !DocumentInfoDictionary.get Method
  
.. _id3_document_document_info_dictionary_get_class_method:

===============================================================================
DocumentInfoDictionary.get Method
===============================================================================

Module: :ref:`DocumentInfoDictionary<id3_document_document_info_dictionary_class>`

Definition
----------

Gets an item of the DocumentInfoDictionary object.


.. tab-set::

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

      .. code:: Python

        get(self, key: str) -> DocumentInfo

      **Parameters**

        .. line-block::

          ``key`` str
          :guilabel:`in` Unique key of the DocumentInfo item to get.


      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          DocumentInfo item to get.

      **Exceptions**

        .. line-block::

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


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

      .. code:: Dart

        DocumentInfo get(String? key)

      **Parameters**

        .. line-block::

          ``key`` String
          :guilabel:`in` Unique key of the DocumentInfo item to get.


      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          DocumentInfo item to get.

      **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 DocumentInfo Get(string key)

      **Parameters**

        .. line-block::

          ``key`` string
          :guilabel:`in` Unique key of the DocumentInfo item to get.


      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          DocumentInfo item to get.

      **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 DocumentInfo get(String key) throws DocumentException

      **Parameters**

        .. line-block::

          ``key`` String
          :guilabel:`in` Unique key of the DocumentInfo item to get.


      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          DocumentInfo item to get.

      **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 get(key: String) throws -> DocumentInfo

      **Parameters**

        .. line-block::

          ``key`` String
          :guilabel:`in` Unique key of the DocumentInfo item to get.


      **Returns**

        .. line-block::

          :ref:`DocumentInfo<id3_document_document_info_class>`
          DocumentInfo item to get.

      **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_Get (
            ID3_DOCUMENT_INFO_DICTIONARY hDocumentInfoDictionary, 
            const char * key, 
            ID3_DOCUMENT_INFO hDocumentInfoItem)

      **Parameters**

        .. line-block::

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

          ``key`` const char *
          :guilabel:`in` Unique key of the DocumentInfo item to get.

          ``hDocumentInfoItem`` :ref:`ID3_DOCUMENT_INFO<id3_document_document_info_class>`
          :guilabel:`out` DocumentInfo item to get.


      **Returns**

        .. line-block::

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


