Latest Articles in the Category Custom Configuration

Sort by: Most Comments | Avg Rating | Most Ratings | Cancel Sort

Custom Provider Configuration Sections

Brian Mains, Oct 25, 2006
Views: 17,147 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.

Custom Configuration Collections

Brian Mains, Oct 13, 2006
Views: 52,666 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.

Configuration Section Validators

Brian Mains, Oct 09, 2006
Views: 10,745 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.

2.0 Custom Configuration Sections

Brian Mains, Sep 20, 2006
Views: 14,273 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.