Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 你怎么知道约会就是会议?_C#_Outlook_Vsto_Outlook Addin - Fatal编程技术网

C# 你怎么知道约会就是会议?

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

我正在使用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?

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


我如何判断约会是会议还是普通约会?

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