I can read an EmailMessage
. Now I need to get the location property using C#.
I can access the properties like Subject
, From
, To
and etc but did not find any property like Location
Basically I am developing a custom transport agent for Exchange. In the OnEndOfData
handler, I need Location.
private void MazeMapAgent_OnEndOfData(ReceiveMessageEventSource source, EndOfDataEventArgs e)
{
EmailMessage emailMessage = e.MailItem.Message;
}
Update
EmailMessage
is a type of Microsoft.Exchange.Data.Transport.Email.EmailMessage
not Microsoft.Exchange.WebServices.Data.EmailMessage