试图访问联系人在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;
我需要的库,这样我可以访问手机上的联系人。这怎么解决?