📄 smallbusinessdataproviderssection.cs
字号:
using System;
using System.Configuration;
/// <summary>
/// SmallBusinessDataProviderSection配置节处理类
/// </summary>
public class SmallBusinessDataProvidersSection : ConfigurationSection
{
//人员提供程序配置项
[ConfigurationProperty("peopleProviderName", IsRequired = true)]
public string PeopleProviderName
{
get { return (string)this["peopleProviderName"]; }
set { this["peopleProviderName"] = value; }
}
//信誉提供程序配置项
[ConfigurationProperty("testimonialsProviderName", IsRequired = true)]
public string TestimonialsProviderName
{
get { return (string)this["testimonialsProviderName"]; }
set { this["testimonialsProviderName"] = value; }
}
//新闻提供程序配置项
[ConfigurationProperty("newsProviderName", IsRequired = true)]
public string NewsProviderName
{
get { return (string)this["newsProviderName"]; }
set { this["newsProviderName"] = value; }
}
//分类提供程序配置项
[ConfigurationProperty("catalogProviderName", IsRequired = true)]
public string CatalogProviderName
{
get { return (string)this["catalogProviderName"]; }
set { this["catalogProviderName"] = value; }
}
//人员提供程序集合
[ConfigurationProperty("PeopleProviders")]
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))]
public ProviderSettingsCollection PeopleProviders
{
get { return (ProviderSettingsCollection)this["PeopleProviders"]; }
}
//客户信誉提供程序集合
[ConfigurationProperty("TestimonialsProviders")]
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))]
public ProviderSettingsCollection TestimonialsProviders
{
get { return (ProviderSettingsCollection)this["TestimonialsProviders"]; }
}
//新闻提供程序集合
[ConfigurationProperty("NewsProviders")]
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))]
public ProviderSettingsCollection NewsProviders
{
get { return (ProviderSettingsCollection)this["NewsProviders"]; }
}
//分类提供程序集合
[ConfigurationProperty("CatalogProviders")]
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))]
public ProviderSettingsCollection CatalogProviders
{
get { return (ProviderSettingsCollection)this["CatalogProviders"]; }
}
} // end class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -