如何在 visual studio 中的解决方案中添加对组件的引用
How to add reference to the component in solution in visual studio
我在 visual studio 的 Web 应用程序中的解决方案中添加了一个组件。我不知道如何从 Web 应用程序访问该组件的方法。请帮忙
How to: Add a Component Reference to a Visual Studio Web Project
On the Website menu (for Web site projects), or the Project menu (for
Web application projects) choose Add Reference and then click the COM
tab.
好吧,如果我正确理解你的问题,你需要使用 using
指令并将它放在代码隐藏文件的最顶部,例如using MyComponent;
这样您就可以从程序集中获取可用属性、方法等的引用。
我在 visual studio 的 Web 应用程序中的解决方案中添加了一个组件。我不知道如何从 Web 应用程序访问该组件的方法。请帮忙
How to: Add a Component Reference to a Visual Studio Web Project
On the Website menu (for Web site projects), or the Project menu (for Web application projects) choose Add Reference and then click the COM tab.
好吧,如果我正确理解你的问题,你需要使用 using
指令并将它放在代码隐藏文件的最顶部,例如using MyComponent;
这样您就可以从程序集中获取可用属性、方法等的引用。