public ContactList GetContacts(SortCriteria sortCriteria);
//Example 1
ContactList cList = ActFwk.Contacts.GetContacts(null);
//Example 2
//This example populates a ContactList sorted by the contacts Last Name, First Name.
//It then displays the name of the first contact in the list.
ContactFieldDescriptor cfd1 = ActFwk.Contacts.GetContactFieldDescriptor("TBL_CONTACT.LASTNAME", true);
ContactFieldDescriptor cfd2 = ActFwk.Contacts.GetContactFieldDescriptor("TBL_CONTACT.FIRSTNAME",true);
SortCriteria[] sCriteria={new SortCriteria(cfd1,ListSortDirection.Ascending),
new SortCriteria(cfd2,ListSortDirection.Ascending)
};
ContactList cList = ActFwk.Contacts.GetContacts(sCriteria);
Contact cContact = cList[0];
MessageBox.Show(cContact.FullName);
Wednesday, July 15, 2009
Subscribe to:
Post Comments (Atom)
.jpg)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.