'Returns a List with cuContact items based on the given name.
'Name - Name to look for.
'Exact - Whether to search for the exact name or to search for names that contain the given value.
'VisibleOnly - Whether to return only visible contacts. In most cases there are many invisible contacts.
Public Sub FindContactsByName(Name As String, Exact As Boolean, VisibleOnly As Boolean) As List
'Similar to FindContactsByName. Finds contacts based on the mail address.
Public Sub FindContactsByMail(Mail As String, Exact As Boolean, VisibleOnly As Boolean) As List
'Similar to FindContactsByName. Finds contacts based on the notes field.
Public Sub FindContactsByNotes(Note As String, Exact As Boolean, VisibleOnly As Boolean) As List
'Similar to FindContactsByName. Finds contacts based on the phone number.
Public Sub FindContactsByPhone(PhoneNumber As String, Exact As Boolean, VisibleOnly As Boolean) As List
'Returns the starred contacts.
Public Sub FindContactsByStarred(Starred As Boolean) As List
'Returns all contacts.
Public Sub FindAllContacts(VisibleOnly As Boolean) As List
'Returns all contacts with a photo.
Public Sub FindContactsWithPhotos As List
'Returns a List with cuEmail items.
Public Sub GetEmails(Id As Long) As List
'Returns a List with cuEvents items.
Public Sub GetEvents(Id As Long) As List
'Returns a List with cuPhone items.
Public Sub GetPhones(id As Long) As List
'Returns the note field.
Public Sub GetNote(id As Long) As String
'Returns the thumbnail photo of the given contact. Returns an uninitialized bitmap if no photo is available.
Public Sub GetPhoto(Id As Long) As Bitmap
'Gets whether the contact is "starred".
Public Sub GetStarred(Id As Long) As Boolean
'Sets the note field of the given id.
Public Sub SetNote(Id As Long, Note As String)
'Adds an email field to the given contact id.
'EmailType - One of the email types strings (see Initialize method).
Public Sub AddEmail(Id As Long, Email As String, EmailType As String)
'Adds a phone field to the given contact id.
'PhoneType - One of the phone types strings (see Initialize method).
Public Sub AddPhone(Id As Long, PhoneNumber As String, PhoneType As String)
'Deletes the given phone number.
Public Sub DeletePhone(Id As Long, PhoneNumber As String)
'Deletes the given email address.
Public Sub DeleteEmail(Id As Long,Email As String)
'Sets the starred state of the given id.
Public Sub SetStarred (Id As Long, Starred As Boolean)
'Deletes the contact with the given Id.
Public Sub DeleteContact(Id As Long)
'Inserts a new contact and returns the cuContact object of this contact.
Public Sub InsertContact(Name As String, Phone As String) As cuContact