yavsc/SalesCatalog/Configuration/CatalogProvidersConfigurati...

27 lines
773 B
C#

using System;
using System.Configuration;
using System.ComponentModel;
namespace SalesCatalog.Configuration
{
public class CatalogProvidersConfigurationSection : ConfigurationSection
{
[ConfigurationProperty("defaultProvider")]
public string DefaultProvider {
get { return (string)base ["defaultProvider"]; }
set { base ["defaultProvider"] = value; }
}
[ConfigurationProperty("providers")]
[ConfigurationCollection(typeof(CatalogProvidersConfigurationCollection),
AddItemName = "add",
ClearItemsName = "clear",
RemoveItemName = "remove")]
public CatalogProvidersConfigurationCollection Providers{
get { return (CatalogProvidersConfigurationCollection) base ["providers"]; }
set { base ["providers"] = value; }
}
}
}