c# - Send a contact from my Windows-Store-App to People App to add it to Exchange account -


greetings fellow programmers!

i developing windows-store-app windows 8.1 in work contact information. user can take picture of business card , gets data it.

what want adding contact ms exchange account. know, in people app preinstalled on system, can connect online account, exchange account, , add contacts it. click add button, type in information need, choose account add , submit.

because don't want use exchange web services access account diretcly, wanted use app kind of gateway that.

i have seen posts suggest use contactpicker , contactpickerui. see contactpickerui has method "add contact". cannot find out gets added to. there sample app on msdn, uses both classes , addcontact method, showing on screen contact chose.

can maybe use share charm achieve this? can tell me contactpickerui adds contact to?

thanks in advance.

ps: first time ask question myself. if there wrong it, let me know.

i found way it. way can show contact details inside app , add standard account configured in people app.

first need set contact:

var newcontact = new contact(); newcontact.firstname = "test"; newcontact.lastname = "test"; newcontact.addresses.add(new contactaddress() { streetaddress = "main street 15",                                                 country = "exampleland",                                                 postalcode = "1337",                                                 locality = "capital city" });  newcontact.phones.add(new contactphone() { description = "home                                            number = "+666 465465464",                                            kind = contactphonekind.home });  newcontact.emails.add(new contactemail() { address = "test@gmail.com" }); 

then use static method showcontactcard contactmanager display contact:

contactmanager.showcontactcard(newcontact, new rect(), placement.above); 

you this:

the result <code>showcontactcard</code>

in reight bottom corner can click "add contact", or whatever may called in application language, opens people app given contact details. click save there , ready.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -