@get


Description:

public unowned Variant? @get (string key)

Retrieves a Variant value from the dictionary.

This can be used to retrieve a value of an arbitrary type, and then convert it manually to a specific type using Variant methods. For most commonly used types, also getters that return the specific type directly are provided ( get_string and similar).

Parameters:

this

instance of Dictionary

key

the key to look up in the dictionary

Returns:

the value; null is returned in case of failure (for example if the entry corresponding to the supplied key doesn't exist).




2022 vala-language.org