你怎么知道约会是会议?

How can you tell an appointment is a meeting?

我正在使用 VSTO 为 Outlook add-in 中的会议开发一个 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?

    }
}

我只需要为会议显示表单区域,不想为普通约会显示表单区域。

如何判断约会是会面还是普通约会?

对于没有与会者的简单约会,您必须检查 MeetingStatus property of the AppointmentItem. The status should show olNonMeeting