你怎么能预约会议?

时间:2015-11-24 08:39:41

标签: 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.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?

    }
}

我需要仅为会议显示表单区域,我不想显示表单区域以进行简单约会。

如何判断约会是会议还是简单约会?

1 个答案:

答案 0 :(得分:3)

您必须检查AppointmentItem的MeetingStatus属性。对于没有与会者的简单约会,状态应显示olNonMeeting