[英]Windows phone 8.1 contacts store issue
I am working on a windows phone 8.1 application and i am currently trying to access the contacts that are a part of different contacts store. 我正在使用Windows Phone 8.1应用程序,并且当前正在尝试访问属于不同联系人存储的联系人。
Here in this example, 在这个例子中
http://msdn.microsoft.com/en-us/library/hh286416.aspx http://msdn.microsoft.com/en-us/library/hh286416.aspx
it shows how to do this. 它显示了如何执行此操作。
My question is, is there a possibility to fetch the contacts based on the contacts store? 我的问题是,是否有可能基于联系人存储来获取联系人?
Currently i am able to get the contacts from all the contacts store but i just need to get from one of the contact store, is there a way to filter it out. 目前,我能够从所有联系人存储中获取联系人,但是我只需要从其中一个联系人存储中获取,有没有办法将其过滤掉。 ?
?
Got it working, 工作正常了
It was just a Linq query i needed. 这只是我需要的一个Linq查询。
ContactResultsData.DataContext =
from Contact con in e.Results
from Account a in con.Accounts
where a.Name.Contains("Sample")
select con;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.