試圖訪問聯繫人在Windows手機在這official doc here詳述,我收到以下錯誤:的Windows電話:訪問聯繫人
Error 1 The type or namespace name 'UserData' does not exist in the namespace 'Microsoft.Phone' (are you missing an assembly reference?) C:\Users\XXX\Documents\Visual Studio
2010\Projects\WindowsPhoneDataBoundApplication1\WindowsPhoneDataBoundApplication1\NewSched.xaml.cs 13 23 WindowsPhoneDataBoundApplication1
具體問題就解決了,當我刪除此聲明:
using Microsoft.Phone.UserData;
我需要的庫,這樣我可以訪問手機上的聯繫人。這怎麼解決?