create_contacts_sync


Description:

[ Version ( since = "3.10" ) ]
public bool create_contacts_sync (string vcards, uint32 opflags, Queue out_contacts, Cancellable? cancellable = null) throws Error

Creates one or more new contacts from vcards, and deposits an Contact instance for each newly-created contact in out_contacts .

The returned Contact instances are referenced for thread-safety and must be unreferenced with unref when finished with them.

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

Parameters:

this

an BookBackend

vcards

a null-terminated array of vCard strings

opflags

bit-or of BookOperationFlags

out_contacts

a Queue in which to deposit results

cancellable

optional Cancellable object, or null

Returns:

true on success, false on failure