我该怎么做...调试时发生错误 [英] What do I do... An error is occurring while debugging

查看:86
本文介绍了我该怎么做...调试时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在(My.Settings.RunTimeConnectionString)中显示错误



错误是'RunTimeConnectionString'不是'WindowsApplication2.My.MySettings'的成员。



我尝试了什么:



我已经上课了.. 。



公共类MySettingChanger

公共共享子SetConnectionString(ByVal cnnString As String)

My.Settings。 RunTimeConnectionString = cnnString

It show error in (My.Settings.RunTimeConnectionString)

The error is 'RunTimeConnectionString' is not a member of 'WindowsApplication2.My.MySettings'.

What I have tried:

I have made the class...

Public Class MySettingChanger
Public Shared Sub SetConnectionString(ByVal cnnString As String)
My.Settings.RunTimeConnectionString = cnnString

推荐答案

My.Settings是一个名为MySettings的类,该类没有名为RunTimeConnectionString的属性。这几乎就是错误消息告诉你的内容。由于我们并不真正了解您的目标,因此无法从您的帖子中了解解决方案的可能性。但是我强烈建议你在c#之前得到一本书,至少在你尝试更复杂的事情之前先了解基础知识。
My.Settings is a class called MySettings, and that class doesn't have a property called RunTimeConnectionString. That's pretty much exactly what the error message is telling you. It's impossible to tell from your post what the solution might be though as we don't really know your aims. However I strongly suggest you get a book on c# and at least get an understanding of the basics before you try anything more complicated.


这篇关于我该怎么做...调试时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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