get_contact


Description:

[ Version ( since = "3.34" ) ]
public Contact get_contact (string uid, Cancellable? cancellable = null) throws Error

Obtains an Contact for uid.

The returned Contact is referenced for thread-safety and must be unreferenced with unref when finished with it.

If an error occurs, the function will set throws and return null.

Parameters:

this

an BookBackendSync

uid

a contact ID

cancellable

optional Cancellable object, or null

Returns:

an Contact, or null on error