c# - Add contact programmatically, with number phone -
i want programmatically add together contact. follow this. can add together info contact without number phone. class storedcontact
doesn't have 'phone number' property. i'm stuck on this. know savecontacttask
, want save contact programmatically, without user inputs. know possible, because exist app doing it: fb, vk example. please, help me, how can save total contact info phone number programmatically, or tell me why can't it, , how apps it?
did tried next code?
idictionary<string, object> props = await contact.getpropertiesasync(); props.add(knowncontactproperties.telephone, "yourtelephone"); props.add(knowncontactproperties.mobiletelephone, "mobiletele"); props.add(knowncontactproperties.alternatemobiletelephone, "mobiletele"); props.add(knowncontactproperties.worktelephone, "mobiletele"); props.add(knowncontactproperties.alternateworktelephone, "mobiletele");
hope helps
c# windows-phone-8.1 contacts silverlight-5.0
No comments:
Post a Comment