.. index:: 
  !FaceTemplateDict.get Method
  
.. _id3_face_face_template_dict_get_class_method:

===============================================================================
FaceTemplateDict.get Method
===============================================================================

Module: :ref:`FaceTemplateDict<id3_face_face_template_dict_class>`

Definition
----------

Gets an item of the FaceTemplateDict object.


.. tab-set::

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

      .. code:: Python

        get(self, key: str) -> FaceTemplate

      **Parameters**

        .. line-block::

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


      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          FaceTemplate item to get.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Dart

        FaceTemplate get(String? key)

      **Parameters**

        .. line-block::

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


      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          FaceTemplate item to get.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C#

        public FaceTemplate Get(string key)

      **Parameters**

        .. line-block::

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


      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          FaceTemplate item to get.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Java

        public FaceTemplate get(String key) throws FaceException

      **Parameters**

        .. line-block::

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


      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          FaceTemplate item to get.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: Swift

        public func get(key: String) throws -> FaceTemplate

      **Parameters**

        .. line-block::

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


      **Returns**

        .. line-block::

          :ref:`FaceTemplate<id3_face_face_template_class>`
          FaceTemplate item to get.

      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


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

      .. code:: C

        int id3FaceTemplateDict_Get (
            ID3_FACE_TEMPLATE_DICT hFaceTemplateDict, 
            const char * key, 
            ID3_FACE_TEMPLATE hFaceTemplateItem)

      **Parameters**

        .. line-block::

          ``hFaceTemplateDict`` :ref:`ID3_FACE_TEMPLATE_DICT<id3_face_face_template_dict_class>`
          :guilabel:`in` Handle to the FaceTemplateDict object.

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

          ``hFaceTemplateItem`` :ref:`ID3_FACE_TEMPLATE<id3_face_face_template_class>`
          :guilabel:`out` FaceTemplate item to get.


      **Returns**

        .. line-block::

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


