Contact

From Pointui

Provides access to a contact on the device. It can be used to read and write properties of the contact.

Contents

Methods

void Display()

Displays the default OS application contact card for this contact.

void Set(int objectID)

Sets the specific contact this object is to contain. This can be called more than once to change to different contacts. After a successful call to Set(), the GetValue(), SetValue() methods can be used to get and set properties for the contact whose unique id matches the supplied objectID.

void GetValue(String propertyName, String result)

void GetValue(String propertyName, int result)

void GetValue(String propertyName, DateTime result)

The GetValue method supports a few different result data types. The variable supplied in the result parameter and the propertyName must match one of the properties listed below:

propertyName Expected Data Type
FirstName String
MiddleName String
LastName String
FileAs String
CompanyName String
Department String
JobTitle String
MobilePhone String
HomePhone String
Home2Phone String
Email1 String
Email2 String
Email3 String
WebPage String
BusinessPhone String
CarPhone String
Business2Phone String
BusinessFax String
BusinessAddressStreet String
BusinessAddressCity String
BusinessAddressState String
BusinessAddressPostCode String
HomeAddressStreet String
HomeAddressCity String
HomeAddressState String
HomeAddressPostCode String
Notes String
ObjectID int


void SetValue(String propertyName, String value)

Sets a property for the contact to the specified value. The propertyName must match one of those listed in the table under Contact.GetValue() which has a String data type.

void Save()

Saves any changes to the contact that have been performed using SetValue().