Outlook Notes(memo) 可以在 VSTO(C#) 上添加项目吗?

Can Outlook Notes(memo) add Item on VSTO(C#)?

VBA 样本:

Set objNote = fldNote.Items.Add 
    With objMail 
        objNote.Body = "test" 
    End With 
objNote.Save 

我不知道如何在 C#(VSTO) 中实现

请帮忙。

谢谢。

通过以下方法实现

public static Outlook.MAPIFolder memofolder;

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            application = this.Application;
            Outlook._NameSpace mapiNameSpace = application.GetNamespace("MAPI");
            memofolder = mapiNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderNotes);

private void OnItemSend(object item, ref bool cancel){
            Outlook.NoteItem a = memofolder.Items.Add(Outlook.OlItemType.olNoteItem);
            a.Body = "test";
            a.Save();

关于 运行 展望 2016。