where the ConfigurationSettings saved

  • Thread starter Thread starter harvie wang
  • Start date Start date
H

harvie wang

In .Net,Through System.Configuration.ConfigurationSettings Get Application's
Settings
I can't find the Configuration Value from Register
Where the ConfigurationSettings saved?
How to Read it except System.Configuration?


Thanks!

Harvi
 
Harvie,

The configuration settings are a combination of the settings in the
config file for the application, as well as the user, machine, and
enterprise settings for the framework.

Why do you want to access them outside of the ConfigurationSettings
class? What are you trying to do?
 
Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C#
when I using system.configuration ,I can't find where the Settings saved
so I want to know the .Net Framework how to do this
 
harvie,

The config file for the application is going to have the most impact on
the settings (or in an ASP.NET case, the web.config file for the directory).
That's where you will want to look most of the time.

It should be noted that you don't have to have an application
configuration file for the app to run.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

harvie wang said:
Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C# when I using system.configuration ,I can't find where the
Settings saved
so I want to know the .Net Framework how to do this
Harvie,

The configuration settings are a combination of the settings in
the config file for the application, as well as the user, machine, and
enterprise settings for the framework.

Why do you want to access them outside of the
ConfigurationSettings class? What are you trying to do?
 
Hello Nicholas Paldino [.NET/C# MVP],
HoHo:)
I'm really purpose is to find the .Net Framework's work mode
in system.dll ,I find next code:
--------------------------------------
ConfigurationRecord record1 = null;
string text1 = DefaultConfigurationSystem.MachineConfigurationFilePath;
//private const string MachineConfigFilename = "machine.config";
Uri uri1 = DefaultConfigurationSystem.AppConfigPath;
this._application = record1 = new ConfigurationRecord();
bool flag1 = record1.Load(text1);
if (!flag1 || (uri1 == null))
{
return;
}
this._application = new ConfigurationRecord(record1);
this._application.Load(uri1.ToString());
---------------------------------------
Now i know the file named machine.config is the target:)
or the uri1 that is my application configuration file

harvie,

The config file for the application is going to have the most
impact on the settings (or in an ASP.NET case, the web.config file for
the directory). That's where you will want to look most of the time.

It should be noted that you don't have to have an application
configuration file for the app to run.

Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C# when I using system.configuration ,I can't find where the
Settings saved
so I want to know the .Net Framework how to do this
Harvie,

The configuration settings are a combination of the settings in
the config file for the application, as well as the user, machine,
and
enterprise settings for the framework.
Why do you want to access them outside of the
ConfigurationSettings class? What are you trying to do?

In .Net,Through System.Configuration.ConfigurationSettings Get
Application's Settings
I can't find the Configuration Value from Register
Where the ConfigurationSettings saved?
How to Read it except System.Configuration?
Thanks!
Harvie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top