windows Phone 7 - Contact and Calendar UniqueID

流过昼夜 提交于 2019-12-10 04:38:57

问题


I need to get UniqueId of Contact and Calendar from Windows Phone 7. I am able to get various properties (e.g. Name, Address etc) but don't get any property to uniquely identify contact and calendar. Is there any property that can be used to uniquely identify contact and calendar?


回答1:


There is no property which exposes a unique Id.

Can you use the HashCode instead?

What would be considered a unique contact anyway?
Because of the way contacts can be created from multiple linked accounts the concept of what a "unique" contact should be could be easily misinterpreted.

If you want this because you're creating copies of contacts details I woudl strongly advise against this because of such issues.
You should also consider data privacy very carefully if doing this.



来源:https://stackoverflow.com/questions/6664599/windows-phone-7-contact-and-calendar-uniqueid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!