本文介绍了SendOnlyToChanged问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我尝试使用EWS API 2.0从交换日历会议中删除与"SendOnlyToChanged"选项相关的与会者。已删除的与会者收到了一封带有"取消"的电子邮件。会议,但其他与会者也收到了一封电子邮件,
更新了会议。我不知道为什么因为我设置了SendOnlyToChanged选项。

I tried to use EWS API 2.0 to remove an attendee from the exchange calendar meeting with option "SendOnlyToChanged". Removed attendee received an email with "cancel" the meeting but others attendees also received an email with update the meeting. I don't know why because I set SendOnlyToChanged option.

因此,每当我删除与会者时,其他人都会收到会议更新。

So every time when I removed attendee others received an meeting update.

我的代码:

ExchangeService服务=新的ExchangeService(ExchangeVersion.Exchange2010_SP2);

service.Credentials = CredentialCache.DefaultNetworkCredentials;

service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress,
);

service.AutodiscoverUrl(" email @ email ");

String sEntryID = _szkolenie_item [" outlook_calendar_item_id"] .ToString();

字符串sEWSID = GetConvertedEWSID(service,sEntryID," ");

约会_spotkanie = Appointment.Bind(service,new ItemId(sEWSID) );

                                             

for(int i = 0;我< _spotkanie.RequiredAttendees.Count; i ++)

{

if(_spotkanie.RequiredAttendees [i] .Address.ToLower()。Equals( getSPUser(_site2,_zapisy_item [" uczestnik"]。ToString())。Email.ToLower()))

{

_spotkanie.RequiredAttendees.RemoveAt(i);

break;

}

}

_spotkanie.Update(ConflictResolutionMode.AlwaysOverwrite,SendInvitationsOrCancellationsMode。 SendOnlyToChanged);

Appointment _spotkanie = Appointment.Bind(service, new ItemId(sEWSID));
                                            
for (int i = 0; i < _spotkanie.RequiredAttendees.Count; i++)
{
if (_spotkanie.RequiredAttendees[i].Address.ToLower().Equals(getSPUser(_site2, _zapisy_item["uczestnik"].ToString()).Email.ToLower()))
{
_spotkanie.RequiredAttendees.RemoveAt(i);
break;
}
}
_spotkanie.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendOnlyToChanged);

 任何人都可以解释为什么会发生这种情况以及如何解决这个问题?

 Anybody can explain why this happened and how to fix it ?

MNiemczycki

MNiemczycki

推荐答案


这篇关于SendOnlyToChanged问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 14:39