是Interop.Outlook多线程吗? [英] Is Interop.Outlook multithreaded?

查看:86
本文介绍了是Interop.Outlook多线程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 Interop 对象生成.来自Web界面的MSG文件.这就是为什么不同线程将同时访问它们的原因.它是多线程的吗?

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?

另一个问题:在服务器上使用Outlook.Application之前是否需要初始化Outlook(例如,帐户集)?

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

推荐答案

您问题的简单答案是.

不要沿着自动化的道路前进,Office应用程序不能在非用户交互环境中使用,也不能在服务器上运行. Microsoft已针对此详细问题发布了相当长的知识库 文章 来自安全性,可伸缩性等.

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.

以前,这不是问题,人们已经忽略了它,只是忽略了建议.但是,您会发现更新的操作系统(vista/server 2k8/win7)和新版本的Office不再起作用.我强烈建议不要沿着那条路走.

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.

这篇关于是Interop.Outlook多线程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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