Latest Articles in the Category Custom Configuration
Avg Rating |
Most Ratings |
Brian Mains, Oct 25, 2006
Views: 15,952 Avg Rating: 0/5 Votes: 0 Comments: 1
Each provider you see in the framework has a custom configuration section associated with it, where you can specify the providers that are utilized for it. These providers specify the type of database to connect to, the object that will do the work, etc. We will take a look at one, and how it is instantiated and use in a provider.
Brian Mains, Oct 13, 2006
Views: 49,715 Avg Rating: 0/5 Votes: 0 Comments: 0
Custom configuration sections support the use of collections. These collections are similar to the add, remove, and clear sections that you see defined for connectionStrings, appSettings, or other sections.
Brian Mains, Oct 09, 2006
Views: 9,243 Avg Rating: 0/5 Votes: 0 Comments: 0
.NET 2.0 has a new means to create custom configuration sections. It also provides a means to validate the content within it, using a custom validator inheriting from ConfigurationValidatorBase. In addition, the validator links to the property in the configuration section through an attribute, which you will see in this article.
Brian Mains, Sep 20, 2006
Views: 13,579 Avg Rating: 0/5 Votes: 0 Comments: 0
.NET 2.0 produced a new way to create custom configuration sections, one that is even easier than before. It involves a custom class that inherits from the ASP.NET ConfigurationSection class, defining usable properties that map to the properties for the configuration element.