سؤال

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