October 2010
Intermediate to advanced
1920 pages
73h 55m
English
A configuration element can contain a collection of child elements. For example, if you need to create a custom configuration section to configure a provider, you use child elements to represent the list of providers.
The class in Listing 34.21 represents a configuration section for a ShoppingCart. The configuration section includes three properties: MaximumItems, DefaultProvider, and Providers. The Providers property represents a collection of shopping cart providers.
Listing 34.21. App_Code\ShoppingCartSection.cs

The Providers property returns an instance of the ProviderSettingsCollection class. ...