[wm]通訊錄存取
Microsoft.WindowsMobile.PocketOutlook
OutlookSession 類別
| 欄位名稱 | 資料型態 | 說明 |
| Appointments | AppointmentFolder | 行事曆 |
| Contacts | ContactFolder | 連絡人 |
| EmailAccounts | EmailAccountCollection | 我的電子郵件帳號 |
| SmsAccount | SmsAccount | 傳送簡訊的帳號 |
| Tasks | TaskFolder | 工作 |
Contact 類別代表一個連絡人,其公用欄位:
| 欄位名稱 | 資料型態 | 說明 |
| LastName | string | 姓氏 |
| FirstName | string | 名字 |
| BusinessTelephoneNumber | string | 公司電話(Work Phone) |
| MobileTelephoneNumber | string | 行動電話(Mobile phone) |
| HomeTelephoneNumber | string | 住宅電話(Home phone) |
| RingTone | string | 自動響鈴音調(Custom ring tone) |
| Picture | Image | 圖片,此欄位唯讀 |
| Email1Address | string | 電子郵件 |
| IM1Address | string | 立即訊息 |
| Business2TelephoneNumber | string | 公司電話2 |
| Home2TelephoneNumber | string | 住宅電話2 |
| CompanyTelephoneNumber | string | 公司電話(Company phone) |
| Categories | string | 類別 |
| PagerNumber | string | 呼叫器 |
| CarTelephoneNumber | string | 車用電話(Car phone) |
| BusinessFaxNumber | string | 公司傳真(Work fax) |
| HomeFaxNumber | string | 住宅傳真(Home fax) |
| AssistantTelephoneNumber | string | 助理電話(Assistant phone) |
| RadioTelephoneNumber | string | 無線電話(Radio phone) |
| Email2Address | string | 電子郵件2 |
| Email3Address | string | 電子郵件3 |
| IM2Address | string | 立即訊息2 |
| IM3Address | string | 立即訊息3 |
| WebPage | string | 網頁 |
| FileAs | string | 歸檔為 |
| CompanyName | string | 公司 |
| Department | string | 部門 |
| JobTitle | string | 職稱(Job title) |
| OfficeLocation | string | 辦公位置(Office loc) |
| BusinessAddressPostalCode | string | 公司地址 – 郵遞區號 |
| BusinessAddressState | string | 公司地址 – 縣/市 |
| BusinessAddressCity | string | 公司地址 – 市/鎮 |
| BusinessAddressStreet | string | 公司地址 – 路/街 |
| BusinessAddressCountry | string | 公司地址 – 國家/地區 |
| HomeAddressPostalCode | string | 住宅地址 – 郵遞區號 |
| HomeAddressState | string | 住宅地址 – 縣/市 |
| HomeAddressCity | string | 住宅地址 – 市/鎮 |
| HomeAddressStreet | string | 住宅地址 – 路/街 |
| HomeAddressCountry | string | 住宅地址 – 國家/地區 |
| OtherAddressPostalCode | string | 其他地址 – 郵遞區號 |
| OtherAddressState | string | 其他地址 – 縣/市 |
| OtherAddressCity | string | 其他地址 – 市/鎮 |
| OtherAddressStreet | string | 其他地址 – 路/街 |
| OtherAddressCountry | string | 其他地址 – 國家/地區 |
| Body | string | 附註(Notes) |
| Nickname | string | 暱稱 |
| Birthday | DateTime | 生日 |
| Anniversary | DateTime | 週年紀念日 |
| Manager | string | 管理員 |
| GovernmentId | string | 政府ID |
| AccountName | string | 帳號名稱(Account name) |
| CustomerId | string | 客戶ID |
| Spouse | string | 配偶 |
| Children | string | 子女 |
| AssistantName | string | 助理 |
OutlookSession outlook = new OutlookSession();//取得通訊資料
Contact newContact = new Contact();//新的通訊人
outlook.Contacts.Items.Add(newContact);//加入
outlook.Contacts.Items;//取得集合
outlook.Contacts.Items[i].FileAs.Equals("名稱");//判斷名稱