//This actually create the person object. Person person = Person.CreatePersonalContact(context); person.DisplayName = name;
//This populates the person object with some valuable data //such as an e-mail address and a phone number SmtpEmailAddress email = new SmtpEmailAddress("shanede@microsoft.com"); CategoryRef primaryEmailCategory = new CategoryRef(GeneralCategorIEs.Primary); email.Categories.Add(primaryEmailCategory); person.PersonalEmailAddresses.Add(email);
TelephoneNumber phone = new TelephoneNumber(); phone.AreaCode="425"; phone.Number="555-1234"; person.PersonalTelephoneNumbers.Add(phone);
//This actually updates "WinFS" with the new data. context.Update();