admin管理员组文章数量:1332339
I have found a new contacts API in Windows 8: .applicationmodel.contacts%28v=VS.85%29.aspx
However I am unable to find out how to list all contacts and add or delete a contact.
Any hints?
I have found a new contacts API in Windows 8: http://msdn.microsoft./en-us/library/windows/apps/windows.applicationmodel.contacts%28v=VS.85%29.aspx
However I am unable to find out how to list all contacts and add or delete a contact.
Any hints?
Share Improve this question edited Feb 27, 2012 at 11:00 Kate Gregory 19k8 gold badges59 silver badges86 bronze badges asked Oct 17, 2011 at 13:56 TN.TN. 19.9k30 gold badges103 silver badges168 bronze badges2 Answers
Reset to default 3Check out the Contact Picker sample. You can't just go modify contacts, you have to have the user select them for you first. This is done with the pickSingleContactAsync() method. This gets you a ContactInformation object which you can query or modify.
Contact Lets your app create a new contact. Available only if your app uses the Contact contract.
PickMultipleContactsOperation Launches the user interface of the Contact Picker to select multiple contacts.
PickSingleContactOperation Launches the user interface of the Contact Picker to select a single contact.
These three classes and/or methods will do everything you want except delete a contract, which I would hope is not exposed to an application.
Remember the documentation and API is not finished.
本文标签: cHow to access and modify contacts in Windows 8Stack Overflow
版权声明:本文标题:c# - How to access and modify contacts in Windows 8? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742328395a2454190.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论