CDOEX和FlagDueBy属性 [英] CDOEX and FlagDueBy property

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

问题描述

对于使用CDOEX和ADO连接到Exchange Server数据库的我的应用程序(在Exchange Server上作为Windows服务运行),我需要新的提醒日期信息,如果有人点击了再次提醒的贪睡按钮,例如"开始前5分钟"对于日历项目。
我的最新信息是FlagDueBy属性给了我这个信息。但是我没有在cdoex.tlb中找到这个对象(我已经在我的C ++源代码中导入了这个类型库。)有人可以帮助我如何使用CDOEX或ADO接口获取这些信息吗?
我尝试这种联系,例如使用Exchange Server 2007(Exchange Server 2003也需要)。

For my application (runs as a Windows Service on a Exchange Server) which is connected to the Exchange Server database with CDOEX and ADO I need the new reminder date information, if someone has clicked the snooze botton to be reminded again e.g. "5 minutes before start" for a calendar item.
My latest information is that the property FlagDueBy gives me this information. But I haven't found this object in the cdoex.tlb (I have imported this type library in my C++ sources).
Can someone help me how I can get this information with the interfaces CDOEX or ADO?

I try this connection e.g. with Exchange Server 2007 (also needed for Exchange Server 2003).

推荐答案

AS CDOEX仅在Exchange Server中可用,请确保尝试构建基于CDOEX的应用程序Exchange Server。

另请注意,不支持或建议在任何.NET线程下使用CDO 1.2.1。

CDOEX应该可以正常工作 - 设置一个引用来从Visual Studio生成一个互操作。请注意,您要设置对CDOEX的引用,而没有引用已设置的ADO - 如果您已完成此操作,请在删除引用后关闭项目并终止cdo和ado interops(擦除它们),然后返回VS并添加仅对CDOEX的引用 - 这也将导致正确生成ADO的互操作(MS上的已知问题)。 CDOEX仅在Exchange服务器上受支持 - 如果您尝试从盒子中运行它,那么您不是步行路径,需要重新回到正轨。为此 - 在Exchange服务器上运行代码。如果您需要在服务器外调用代码,然后将其放入COM +或Web服务 - 应该可以正常工作。

如果您单独尝试使用Exchange Server 2007,那么您可以构建Exchange Web服务( EWS)API。
如果您尝试使用Exchange Server 2003& 2007年,你可以使用WebDAV,MAPI(当你尝试使用C ++时)来利用它。

希望这会有所帮助。
AS CDOEX is only available in Exchange Server, make sure you try to build the CDOEX based application in the Exchange Server.

Also note that CDO 1.2.1 is not supported or advised to be used under any .NET thread.


CDOEX should work fine - set a reference to generate an interop from Visual Studio.  Note that you want to set the reference to CDOEX with no references to ADO already set - if you have done this, close the project after removing the references and kill the cdo and ado interops (erase them), then go back into VS and add a reference to CDOEX ONLY - this will also cause an interop for ADO to be properly generated (known issue at MS).  CDOEX is only supported on the Exchange server - if you try to run it off the box, then you are not walking path and need to get back on track.  To do this - run the code on the exchange server.  If you need to call the code off-server, then put it into COM+ or a web service - should work fine.

If you try with Exchange Server 2007 alone, then you can build Exchange Web Services (EWS) API.
If you try with Exchange Server 2003 & 2007, then you can use WebDAV, MAPI(as you try C++) to make use of that.

Hope this helps.


这篇关于CDOEX和FlagDueBy属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆