Microsoft.WindowsMobile.PocketOutlook (Contact)

Microsoft.WindowsMobile.PocketOutlook library, an easy-to-use managed class library around two separate native APIs: the Microsoft Office Pocket Outlook Object Model (POOM), which is responsible for Calendar, Contacts, and Tasks on the device, and Windows CE Mail API (CEMAPI), which handles all e-mail and Short Message Service (SMS) functionality on the device.

 

C#

 

一个Contact就是一个PimItem。可以使用ContactCollection在Contact folder中添加和找到contact。
contact class中包含了很多成员,方法和事件:
http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.pocketoutlook.contact_members.aspx

 

 

use pockectOulook.session instance Object:

 

 

sample of Contacts List

foreach在C#中只适用于读取数据,不适用于写入数据(是不适用不是不能用),because of foreach 是反复穿过collection来得到information的,所以不要改变collection中包含的东西,会引起一些不必要的麻烦。

 

Add New Contact item:

 

 

 

Edit contact item(similar as AddNew())

 

 

 

Delete contact item, very similar as Edit method:

 


以上就是contact的基本应用。
posted @ 2009-03-05 22:48  frankAvanel  阅读(971)  评论(0编辑  收藏  举报