protected ContactItemType BuildContactItemWithEmailAddress(EmailAddressKeyType emailAddressKeyType)
{
// Create a contact item type.
ContactItemType item = new ContactItemType()
{
// Set a single e-mail address for the contact.
EmailAddresses = new EmailAddressDictionaryEntryType[]
{
new EmailAddressDictionaryEntryType()
{
Value = Common.GenerateResourceName(this.Site, "EmailAddress") + "@" + Common.GetConfigurationPropertyValue("Domain", this.Site),
Key = emailAddressKeyType,
}
}
};
return item;
}