VSTO (visual studio 2010) を使用して Outlook 2010 用のアドインを開発しています。私はメール アイテムを扱っていて、新しい電子メール プロパティを取得し、新しい電子メールの送信中にいくつかの条件下でいくつかの作業を行いたいと考えsubjectています。しかし、、、、、、 ... などのいくつかのプロパティを取得できませんでした .... 以下は、使用したコードです。bodyToCCBCCCategory"From"Attachment (have or not)attachment size and namechecked as high importance or notchecked as sensitivity or notrequest deliveryrequest read recipt
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
Application.ItemSend+=new Outlook.ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend);
}
void Application_ItemSend(object Item, ref bool Cancel)
{
Outlook.Recipient recipient = null;
Outlook.Recipients recipients = null;
Outlook.MailItem mail = Item as Outlook.MailItem;
string selectedAccount= ?????
}
後者のプロパティを取得するにはどうすればよいですか?