GLib.VariantType.key

### Method

# GLib VariantTypekey

since: 2.24

#### Declaration

    const GVariantType*
    g_variant_type_key (
      const GVariantType* type
    )

#### Description

Determines the key type of a dictionary entry type.

This function may only be used with a dictionary entry type. Other than the additional restriction, this call is equivalent to g_variant_type_first().

Available since: 2.24

#### Return value

Type: `GVariantType`

The key type of the dictionary entry

Since 2.24

The data is owned by the instance.