Is Interop.Outlook multithreaded?

倖福魔咒の 提交于 2019-12-11 04:50:17

问题


I need to use Outlook Interop objects for generating .MSG files from a web interface. That's why they will be accessed simultaneously by different threads. Is it multithreaded?

And another question: Does Outlook need to be initialized (e.g. account set) before using Outlook.Application on a server?


回答1:


The simple answer to your question is No.

Don't go down the automation route, Office applications are not designed to be used within a non-user interactive environment or to be ran on a server. Microsoft have posted quite a long knowledge base article on this detailing problems from security, scalability etc.

Previously this hasn't been a problem and people have gotten away with it, just ignoring the advice. However you'll find that the newer operating systems (vista/server 2k8/win7) and new versions of Office simply don't work anymore. I highly recommend not going down that route.




回答2:


As far as I know none of the Office API's were designed to work on the server side, only at the client side.



来源:https://stackoverflow.com/questions/2176966/is-interop-outlook-multithreaded

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!