add_relation


Description:

[ Version ( since = "0.7.0" ) ]
public void add_relation (GContactRelation relation)

Adds a relation to the contact's list of relations and increments its reference count.

Duplicate relations will be added to the list, and multiple relations with the same relation type can be added to a single contact. Though it may not make sense for some relation types to be repeated, adding them is allowed.

Parameters:

this

a ContactsContact

relation

a GContactRelation to add