Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/335.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.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# 约会.保存和约会.更新总是将IsMeeting设置为true_C#_Visual Studio_Exchangewebservices - Fatal编程技术网

C# 约会.保存和约会.更新总是将IsMeeting设置为true

C# 约会.保存和约会.更新总是将IsMeeting设置为true,c#,visual-studio,exchangewebservices,C#,Visual Studio,Exchangewebservices,我想创建约会,而不是会议: Appointment app = new Appointment(ews); app.Start = DateTime.Now; app.End = DateTime.Now.AddMinutes(60); app.Subject = "My Subject"; app.Save(); string unid = app.Id.UniqueId; // here the unid is given to the client, that may make anoth

我想创建约会,而不是会议:

Appointment app = new Appointment(ews);
app.Start = DateTime.Now;
app.End = DateTime.Now.AddMinutes(60);
app.Subject = "My Subject";
app.Save();
string unid = app.Id.UniqueId;
// here the unid is given to the client, that may make another call leading to:
ItemId iid = new ItemId(unid);
app = Appointment.Bind(ews, iid, calendarFullEntryProperties);
return app.IsMeeting; // Will return true, although I never added any participants.

为什么呢?我是否忽略了文档中的任何内容?

EWS对会议和约会使用相同的对象类型。保存或更新约会时的默认行为是发送会议邀请,即使您没有邀请任何人。这本质上将IsMeeting设置为true。若要将此保存为约会,请将用于保存的代码行更改为:

app.Save(SendInvitationsMode.SendToNone);

这将阻止发送邀请,并将IsMeeting设置为false。

EWS对会议和约会使用相同的对象类型。保存或更新约会时的默认行为是发送会议邀请,即使您没有邀请任何人。这本质上将IsMeeting设置为true。若要将此保存为约会,请将用于保存的代码行更改为:

app.Save(SendInvitationsMode.SendToNone);

这将阻止发送邀请,并将IsMeeting设置为false。

很高兴知道,谢谢。这种行为已经成为文档的一部分了吗?我不认为文档中有这么详细的内容,所以我提出了一个请求,以确保它得到了正确的覆盖。有没有办法绕过这个限制并发送邀请?也许通过编程方式创建会议邀请?很高兴知道,谢谢。这种行为已经成为文档的一部分了吗?我不认为文档中有这么详细的内容,所以我提出了一个请求,以确保它得到了正确的覆盖。有没有办法绕过这个限制并发送邀请?也许可以通过编程方式创建会议邀请?