- To put Application settings without using Windows Registry or database, we use configuration files in .NET
- System.Configuration namespace is required to use classes that serve to read/write configuration information for .NET applications.
- ConfigurationManager class provides properties and methods that return Configuration objects related to a particular Assembly.
- CodeBase section of the configuration file tells the CLR which .NET Framework version to use.
- ConfigurationSettings class is obsolete in .NET 2.0. Instead use ConfigurationManager.AppSettings
- ConfigurationManager.AppSettings is a NameValueCollection containing strings
- ConnectionString settings can be accessed as ConnectionStringSettingsCollection. It is exposed as ConfigurationManager.ConnetionStrings property.
- It is better to use WebConfigurationManager in ASP.NET applications rather than ConfigurationManager.
- We may create settings file by hand or we may add a SettingsFile to our project in order to visually create settings.
- Configuration Settings are case-sensitive and white-space sensitive.
- System.Runtime.Remoting section may be used to define settings for remote applications.
Tuesday, July 21, 2009
Chapter 9-Lesson 1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment