0
我正在开发一个在自定义任务窗格(即在检查器窗口中)中具有按钮的Outlook插件。当它点击时,我希望它对当前活动项目做些什么(在我的情况下,它是约会项目)。通过我Outlook自定义任务窗格控件
private void button1_Click(object sender, EventArgs e)
{
Outlook.Inspector inspector = (Outlook.Inspector)Globals.ThisAddIn.Application.ActiveInspector;
Outlook.AppointmentItem appt = (Outlook.AppointmentItem)inspector.CurrentItem;
appt.Body += "this is a test";
}
但这个错误:我已经试过这(此代码是在自定义任务窗格类)
Cannot convert method group 'ActiveInspector' to non-delegate type 'Microsoft.Office.Interop.Outlook.Inspector'. Did you intend to invoke the method?
感谢