ews-managed-api

EWS error when updating an item Category

送分小仙女□ 提交于 2019-12-12 01:35:45
问题 I get the following error when calling the Update() method on an Item in my VB .Net application using EWS (logged on to Exchange 2007 SP1): Property update did not succeed What could be the cause? I'm really hoping this is not due to EWS requiring Exchange 2010 to update categories on an item. The only update I made to the item was to Add a category. EDIT: Also, the following code, which makes a copy of the message and updates its category works fine. So it looks like it's only changing the

How to Close a Streaming Subscription for a particular mailbox in EWS API?

偶尔善良 提交于 2019-12-11 17:42:21
问题 I have a EWS Managed API code running with multiple streaming subscriptions. I want to terminate (or restart) the connection to a specific mailbox on the basis of some conditions. How to use the connection.close() (or any other way) to close a particular subscription id? Any idea how to force close a streaming subscription connection? 回答1: Connections can contain one more more Mailboxes depending on how your doing affinity. You just close the connection the mailbox is in itself https://docs

How do you set a message Reply-To address using EWS Managed API?

南笙酒味 提交于 2019-12-11 12:28:43
问题 How do you set the reply-to header when sending a message using Exchange Web Services Managed API in Powershell v3? I have a Microsoft.Exchange.WebServices.Data.EmailMessage object and can set the from address, add attachments, and send mail successfully. I was able to add an x-header using: $xheader = new-object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition([Microsoft.Exchange.WebServices.Data.DefaultExtendedPropertySet]::InternetHeaders,"x-my-header",[Microsoft.Exchange

Accessing custom contacts using EWS managed API

旧巷老猫 提交于 2019-12-11 09:47:04
问题 I've been tasked to create an application (using C# and EWS Managed API) that synchronizes an Outlook contact folder with a Lotus Notes Contacts Database (accessed via SOAP). So far I've successfully fetched all contacts from Notes and added them to a Public folder on Exchange. But now those contacts should also be available on a smartphone (primarily iPhone), and as far as I know, it is not possible to view contacts in a Public folder from a smartphone? So this is where I need some help. I

Getting Room Appointments Efficiently from Exchange

北慕城南 提交于 2019-12-11 05:46:28
问题 The Problem I need to be able to get appointment data from meeting rooms using the Exchange Managed API. I have had a service running for about a month that serves this purpose just fine by using ExchangeService.GetUserAvailability() as follows: private IEnumerable<CalendarEvent> GetEvents(ExchangeService ExchangeService, string room, DateTime time, DateTime end) { List<AttendeeInfo> attendees = new List<AttendeeInfo>(); end = new DateTime(time.Ticks + Math.Max(end.Ticks - time.Ticks, time

Why does EWS Managed API SyncFolderItems not return recurring appointments

你说的曾经没有我的故事 提交于 2019-12-10 16:48:48
问题 I'm using the managed API of EWS to synchronize a scheduling application with exchange calendars. I get all normal meetings fine, but I am not getting any repeating/recurring appointments. My code follows: itemChangeCollection = _service.SyncFolderItems( new FolderId(WellKnownFolderName.Calendar, new Mailbox(Email)), propertySet, null, Settings.Default.ExchangeSyncFetchCount, SyncFolderItemsScope.NormalItems, syncState); What do I need to change to see the recurring appointments as well? 回答1:

How to force garbage collection of object you can't dereference?

江枫思渺然 提交于 2019-12-10 02:32:09
问题 We are using EWS Managed API which polls MS Exchange for new mail messages after a given interval. With each invocation of the polling call ( PullSubscription.GetEvents() ) - Microsofts API is failing to properly dispose the NetworkStream and causes memory to proportionately increase. This was previously discussed here, but never resolved. Using ANTS Profiler we were able to determine which objects were continuously growing in memory and isolate the issue. Now that the issue has been isolated

ServiceId.UniqueId Maximum Length and Format

我们两清 提交于 2019-12-08 16:29:22
问题 Every Item (e.g. Task) in Exchange Web Services (EWS) Managed API has an Id property of type ItemId, which then has a String property named UniqueId (inherited from ServiceId — phew, got that?). I'm planning to keep the value of UniqueId in a database so I need to know what the maximum length of the column should be. Some testing shows that it's at least 152 bytes in length, but that seems like a strange size for a maximum. A second part to this question is the format of the value. Is this

Exchange Web Services Managed API: Accessing other users items

£可爱£侵袭症+ 提交于 2019-12-06 19:44:48
问题 Is it possibly to access the folders and items of other Exchange accounts other than the one of the logged in user? Can I do this via Exchange Web Services Managed API? 回答1: Yes it is possible, but you should know the password of the other user or grab in some ways this credentials ( NetworkCredential object). The typical first lines of you code could be ExchangeService myService = new ExchangeService (ExchangeVersion.Exchange2007_SP1); myService.Credentials = new NetworkCredential ("user

Can we connect to Exchange 2016 using EWS Managed API?

删除回忆录丶 提交于 2019-12-05 21:09:49
问题 I am using EWS Managed API 2.2 and it does not show the Exchange version 2016 in its enumeration. I can see the versions upto Exchange 2013. So how can I connect to Exchange Server 2016? Is the API, yet to be updated from Microsoft or do I need to use any other API's to connect to Exchange 2016 ? 回答1: It will connect just fine. You don't need to set the version to match the server, you set the version to indicate the lowest level of service you support. 来源: https://stackoverflow.com/questions