vsto名称空间互操作 [英] vsto namespace interop

查看:77
本文介绍了vsto名称空间互操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





这是一个只是出于好奇而被问到的问题。如果有人可以澄清,那将不胜感激。



i只是想知道当编写somthing时编译器如何理解隐含的是microsoft.office.interop.excel命名空间像这样

Hi,

this is a question just asked out of curiosity. if someone could clarify, that'd be appreciated.

i just wonder how the compiler understands that what is implied is microsoft.office.interop.excel namespace when we write somthing like this

dim wb as Excel.Workbook



即使没有进口声明。


even if there is no imports statement.

推荐答案

我想我找到了答案。在属性>引用中,有一个名为Imported Namespaces的部分,我发现



Imports Excel = microsoft.office.interop.excel

声明那边。所以,VS为我们自动完成这项工作,这很酷:)
i think i found the answer. in the properties >references, there is a section called Imported Namespaces, i found the

Imports Excel = microsoft.office.interop.excel
statement over there. so, VS does this job automaticallay for us, which is cool :)


这篇关于vsto名称空间互操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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