Gio.SettingsSchema.get_key

### Method

# Gio SettingsSchemaget_key

since: 2.40

#### Declaration

    GSettingsSchemaKey*
    g_settings_schema_get_key (
      GSettingsSchema* schema,
      const gchar* name
    )

#### Description

Gets the key named `name` from `schema`.

It is a programmer error to request a key that does not exist. See g_settings_schema_list_keys().

Available since: 2.40

#### Parameters

`name`

  Type: `const gchar*`

  The name of a key.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `GSettingsSchemaKey`

The `GSettingsSchemaKey` for `name`.

The caller of the method takes ownership of the data, and is responsible for freeing it.