c++ cli - creating a contact with custom field? -


i'm working on uwp software requires manage contacts list. each contact must store @ least 1 public key (hash) identify themselves. checked api uwp , quiet unclear me how this.

for windows8 phone there storedcontact wich seems able store custom fields. example can found @ page 16 of presentation here : http://www.slideshare.net/windowsphonerocks/16-interacting-with-user-data-contacts-and-appointments

for uwp, tried first add storedcontact. have no access windows::phone::personalinformation (see namespace here : https://msdn.microsoft.com/en-us/library/windows/apps/jj207745.aspx). (n.b. i'm not targeting phone device).

then tried add custom field contact (https://msdn.microsoft.com/library/windows/apps/br224849) @ point have no idea how to. since windows::applicationmodel::contacts sealed cannot try create child class , adding property hashkey.

technicaly have class hashkey wich windows::applicationmodel::contacts::contactphone.

if it's not possible store custome field need know it, because it's critical issue me.

msdn version : https://social.msdn.microsoft.com/forums/windowsapps/en-us/d3886f74-3579-43b9-9870-a465c6ff51ea/creating-a-contact-with-custom-field-?forum=wpdevelop#d3886f74-3579-43b9-9870-a465c6ff51ea

i replied same question in msdn, please see: https://social.msdn.microsoft.com/forums/windowsapps/en-us/d3886f74-3579-43b9-9870-a465c6ff51ea/creating-a-contact-with-custom-field-?forum=wpdevelop.

contact object designed not allowed add new 1 can change exist field.

since didn't mentioned developing c++ ,so gave c# code. here simple c++ code sample:

contactphone^ phone1 =ref new contactphone(); phone1->number = "secrectword"; phone1->description = "password";  contact1->phones->append(phone1); 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -