Set the address type (work, home). Possibility to set the "Work" fields in add to the "Home" fields. Address fields could appear under the "Work" label.
Type of issue
[ ] Bug
[ ] Question (e.g. about handling/usage)
[x] Request for new feature/improvement
Expected Behavior
I would like to print some values under the "work" label. For example I want address, city and so on to appear under the "work" label. However the class only allows to set street, houseNumber, city, zipCode, country only referred to the home address and not to the work address.
Current Behavior
the class only allows to set street, houseNumber, city, zipCode, country only referred to the home address and not to the work address.
Possible Solution (optional)
It should be useful if other field could be set, in order to change the address label from "home" to "work".
Steps to Reproduce (for bugs)
Your Environment
.Net framework 4.5
Just to update, I've found a workaround replacing the content of the payload of the "ContactData" object. For example:
ContactData generator = new ContactData(ContactData.ContactOutputType.VCard3, name, lastName, nickName, phone, mobilePhone, workPhone, email, birthDayD, webSite, street, houseNumber, city, zipCode, country, note, stateRegion, ContactData.AddressOrder.Default, org, orgTitle); string payload = generator.ToString();
payload = payload.Replace("ADR;TYPE=HOME", "ADR;TYPE=WORK");
payload = payload.Replace("TEL;TYPE=HOME", "TEL;TYPE=WORK");
payload = payload.Replace("EMAIL:", "EMAIL;TYPE=INTERNET;TYPE=WORK:");