|
-
Jul 14th, 2006, 01:49 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] just wondering
ok in the vs2005 i'm just wondering if anyone knows what namespace to import for the configurationmanager... because right now i'm using the ConfigurationSettingsAppSettings and it's telling me that i should be using System.Configuration.ConfigurationManager.AppSettings, however i can't find it anywhere
-
Jul 14th, 2006, 01:59 PM
#2
Hyperactive Member
Re: [2005] just wondering
-
Jul 14th, 2006, 02:01 PM
#3
Re: [2005] just wondering
add the system.configuration.dll to your references...
-
Jul 14th, 2006, 02:05 PM
#4
Thread Starter
Frenzied Member
Re: [2005] just wondering
thanks guys i'd rate ya kleinma but i have to spread some first
-
Jul 14th, 2006, 02:06 PM
#5
Re: [2005] just wondering
its all good.. just doing my unpaid job
-
Jul 14th, 2006, 02:09 PM
#6
Re: [RESOLVED] [2005] just wondering
by the way....
if you look at the MSDN help for a given class, it will tell you what DLL Its located in..
-
Jul 14th, 2006, 02:13 PM
#7
Thread Starter
Frenzied Member
Re: [RESOLVED] [2005] just wondering
that's just it i did and that's why i was so confused... because i knew i could access the configuration without referencing the dll before directly so i didn't even think of that. i'll know better for next time.
-
Jul 14th, 2006, 02:16 PM
#8
Re: [RESOLVED] [2005] just wondering
well the other thing you need to remember is that a namespace doesn't have to be confined to a single DLL... a namespace could span multiple DLL's but certain parts of the namespace are only accessible in code when the DLL containing that part of the namespace is referenced...
a good example of this is the system.web namespace...
create a new VB winform app, and in a sub type
Dim x as system.web. <--- and you will see only 3 classes
but if you add a reference to system.web.dll in your references.. the rest of the namespace is now available to your app...
-
Jul 14th, 2006, 02:19 PM
#9
Thread Starter
Frenzied Member
Re: [RESOLVED] [2005] just wondering
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|