问题描述
在使用Exchange Web Services 2007 SP1插入日历时,是否可以帮助我找出日历约会项目的唯一任命ID?我使用的是.NET 2.0和C#。代码如下:
ExchangeServiceBinding esb = new ExchangeServiceBinding();
esb.RequestServerVersionValue = new RequestServerVersion();
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
esb.Credentials = new NetworkCredential(userName,password,domain);
esb.Url = @" https://" + fullQualifiedDomainName +" /EWS/Exchange.asmx" ;;
/ *一些代码用于创建[CalendarItemType]并设置不同的属性... * /
$
//创建约会...
CreateItemResponseType response = esb.CreateItem(request);
//获取回复消息。
ResponseMessageType [] rmta = response.ResponseMessages.Items;
/ *根据响应消息状态,我检查,是否成功添加约会? * /
在这里,我如何获得此预约的唯一任命ID和更改密钥ID?
$
注意:我在以后的申请阶段使用这个独特的任命ID修改/删除/取消预约。
;如果有更好的方式来插入/修改/删除/取消约会,那么请指出。
  ;  谢谢,
Bharat Mori ...........快乐编程......! :)
$
Can anyone help me to find out UNIQUE APPOINTMENT ID of calender appointment item, at the time of it's insertion using Exchange Web Services 2007 SP1? I am using .NET 2.0 and C#. The code is as under:
ExchangeServiceBinding esb = new ExchangeServiceBinding();
esb.RequestServerVersionValue = new RequestServerVersion();
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
esb.Credentials = new NetworkCredential(userName, password, domain);
esb.Url = @"https://" + fullyQualifiedDomainName + "/EWS/Exchange.asmx";
/* Some code to create [CalendarItemType] and setting different properties... */
// Create appointment...
CreateItemResponseType response = esb.CreateItem(request);
// Get the response messsages.
ResponseMessageType[] rmta = response.ResponseMessages.Items;
/* Based on response message status, I check, whether appointment added successfully or not? */
Here, how can I get UNIQUE APPOINTMENT ID and CHANGE KEY ID of this appointment ???
Note : I am using this UNIQUE APPOINTMENT ID to Modify/Delete/Cancel appointment on later application stages.
If there is any better way to Insert/Modify/Delete/Cancel an appointment then please, kindly specify.
Thanks,
Bharat Mori...........Happy Programming....! :)
这篇关于如何使用.NET 2.0和C#插入日历约会项目的唯一APPOINTMENT ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!