我正在使用VSTO在Outlook加载项中为会议开发Outlook表单区域。
我的地区工厂看起来像这样:
[Microsoft.Office.Tools.Outlook.FormRegionMessageClass(Microsoft.Office.Tools.Outlook.FormRegionMessageClassAttribute.Appointment)]
[Microsoft.Office.Tools.Outlook.FormRegionName("Notices.MeetingRegion")]
public partial class MeetingRegionFactory
{
// Occurs before the form region is initialized.
// To prevent the form region from appearing, set e.Cancel to true.
// Use e.OutlookItem to get a reference to the current Outlook item.
private void MeetingRegionFactory_FormRegionInitializing(object sender, Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs e)
{
var appointment = e.OutlookItem as Outlook.AppointmentItem;
// is appointment a meeting or just an appointment?
}
}
我需要仅为会议显示表单区域,我不想显示表单区域以进行简单约会。
如何判断约会是会议还是简单约会?