简体   繁体   English

Interop Outlook 和 Outlook Object 库之间的区别

[英]Difference between Interop Outlook and Outlook Object Library

I have a question about visual studio, I noticed when you add references in the COM section you can find: Microsoft Office Outlook 12.0 Object Library.我有一个关于 Visual Studio 的问题,我注意到当您在 COM 部分添加引用时,您可以找到:Microsoft Office Outlook 12.0 Object 库。 While on the Assemblies you can see the Microsoft.Office.Interop.Outlook在程序集上,您可以看到 Microsoft.Office.Interop.Outlook

I would like to know the difference between this two, I tried researching but i have only found topics on each one of those but not the differences, I would love if somebody could provide me with an explanation, Juts simple curiosity.我想知道这两者之间的区别,我尝试过研究,但我只找到了每个主题的主题,但没有发现差异,如果有人可以为我提供解释,我会很高兴,只是好奇。 (I'm kind of a beginner). (我是一个初学者)。 Thanks!谢谢!

在此处输入图像描述

在此处输入图像描述

They are both pretty much the same - when you reference OOM from the COM tab, VS under the covers creates an interop dll (which is essentially nothing but a header file in a binary format).它们几乎相同 - 当您从 COM 选项卡中引用 OOM 时,VS 在幕后创建了一个互操作 dll(它基本上只是一个二进制格式的 header 文件)。 That is the same interop dll that you can add to your project as a reference.这与您可以作为参考添加到项目中的互操作 dll 相同。

The biggest advantage of adding a reference to an interop dll instead of the COM library itself is the ability to build the project even if the COM library is not installed, egon a dedicated builder machine, which might not have Office installed.添加对互操作 dll 而不是 COM 库本身的引用的最大优势是能够构建项目,即使 COM 库可能未安装,例如未安装的专用构建器机器。

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

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