C# 你怎么知道约会就是会议?
我正在使用VSTO在Outlook加载项中为会议开发Outlook窗体区域 我所在地区的工厂如下所示:C# 你怎么知道约会就是会议?,c#,outlook,vsto,outlook-addin,C#,Outlook,Vsto,Outlook Addin,我正在使用VSTO在Outlook加载项中为会议开发Outlook窗体区域 我所在地区的工厂如下所示: [Microsoft.Office.Tools.Outlook.FormRegionMessageClass(Microsoft.Office.Tools.Outlook.FormRegionMessageClassAttribute.Appointment)] [Microsoft.Office.Tools.Outlook.FormRegionName("Notices.MeetingReg
[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?
}
}
我只需要为会议显示表单区域,我不想为普通约会显示表单区域
我如何判断约会是会议还是普通约会?您必须检查AppointmentItem的属性。对于没有与会者的简单约会,应显示状态