我正在将一些
代码从C#转换为VB.NET,我需要知道C#的using指令的等价物.
更新:对不起,但到目前为止我还没有得到答案.这是一个C#示例:
using moOutlook = Microsoft.Office.Interop.Outlook;
using moExcel = Microsoft.Office.Interop.Excel;
namespace ReportGen
{
class Reports
你正在寻找
Imports声明.将所需的任何import语句放在
代码文件的最顶层,就像C#中的using指令一样:
Imports moOutlook = Microsoft.Office.Interop.Outlook
Imports moExcel = Microsoft.Office.Interop.Excel
Namespace ReportGen
Public Class Reports
'Your code here
End Class
End Namespace