简体   繁体   English

Exchange Web服务托管API:如何从电子邮件中获取任务?

[英]Exchange Web Service Managed API: How to get Task from E-Mail?

I am using EWS to get some E-Mails, everything works fine but now i have to implement the "CompleteDate" which is set when someone uses this Red Flag in Outlook to set it to a Task. 我正在使用EWS来获取一些电子邮件,一切正常,但是现在我必须实现“ CompleteDate”,当有人在Outlook中使用此Red Flag将其设置为“任务”时会设置该名称。

I searched everything but i dont find a way to get the task from the E-Mail.. i tried to bind the Mail as a Task but id didnt work: 我搜索了所有内容,但没有找到从电子邮件中获取任务的方法。我尝试将邮件作为任务绑定,但id无效:

Task task = Task.Bind(service, item.Id);

Could anyone help me out here? 有人可以帮我吗?

What can help is make use of IlSpy for viewing the DLL. 可以帮助您使用IlSpy查看DLL。 A other great tool is EWSEditor. 另一个很棒的工具是EWSEditor。 Its free and you can use it to read items based on EWS. 它是免费的,您可以使用它来基于EWS读取项目。 A e-mail cant be a task, you dont have the properties for the task. 电子邮件不能成为任务,您没有该任务的属性。 To get the task you need to search by subject. 要获得任务,您需要按主题搜索。

See example: http://code.msdn.microsoft.com/Exchange-2013-Find-tasks-0d2633ec (With coding example) 请参阅示例: http : //code.msdn.microsoft.com/Exchange-2013-Find-tasks-0d2633ec (带有编码示例)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM