能否请您提出正确的方法 [英] Could you please suggest the right approach

查看:77
本文介绍了能否请您提出正确的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这样做之后你能否建议正确的方法我得到以下错误:

类型'连接'未定义

类型'IHubConnection'未定义。



我选择的intellisence中的第一个错误

importAspNet.SignalR.Infrastructure





不确定第二个错误。



我尝试过:



公共类HubConnection

继承连接

实现IHubConnection,IConnection

结束类

Could you please suggest the right approach after doing this im getting the below errors:
Type 'Connection' not defined
Type 'IHubConnection' not defined.

for the first error in the intellisence i selected
importAspNet.SignalR.Infrastructure


Not sure about the second error.

What I have tried:

Public Class HubConnection
Inherits Connection
Implements IHubConnection, IConnection
End Class

推荐答案

您需要在文件顶部使用正确的导入语句。在VS中右键单击带有问题的单词并从上下文菜单中选择Resolve,然后会有一个选项将相关语句添加到文件顶部。



像这样的命名空间问题是基本的.net 101的东西,你可能会很好地在.net上获得一本书并学习基础知识,然后继续学习更高级的东西。
You need the right "imports" statements at the top of the file. In VS right-click the word with the issue and select "Resolve" from the context menu and there will be an option to add the relevant statement to the top of the file.

Namespace issues like this are basic .net 101 stuff, you'd probably do well to get a book on .net and learn the basics before moving on to anything more advanced.


这篇关于能否请您提出正确的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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