get_const


Description:

[ CCode ( simple_generics = true ) ]
public unowned T get_const<T> (ContactField field_id)

Gets the value of this's field specified by field_id, caching the result so it can be freed later.

Use field_is_string to check whether the field can be used here.

Parameters:

this

an Contact

field_id

an ContactField

Returns:

Depends on the field's type, owned by the Contact.