문제

Let's say I have declared a oledDbAdapter1 in Form1, and another in Form2 with exactly the same name. Will this cause any conflict?

도움이 되었습니까?

해결책

No the fully qualified object name must be unique. So in your case you have:

MyApplication.Form1.oledDbAdapter1 

and

MyApplication.Form2.oledDbAdapter1 

Where MyApplication is the name of the Application or Assembly

So this will not cause an issue. But you can't have two objects called oledDbAdapter1 in Form1

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top