首页->企业网站->中小企业网站系统前台源码(SmallBusinessStarterKit)>>App-Code/SmallBusinessDataProvidersSection.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:中小企业网站系统前台源码(SmallBusinessStarterKit)
当前文件:
SmallBusinessStarterKit/App_Code/SmallBusinessDataProvidersSection.cs[2K,2009-6-12 11:54:21],打开代码结构图
SmallBusinessStarterKit/App_Code/SmallBusinessDataProvidersSection.cs[2K,2009-6-12 11:54:21],打开代码结构图1using System; 2
using System.Configuration; 3
/// <summary> 4
/// SmallBusinessDataProviderSection配置节处理类 5
/// </summary> 6
public class SmallBusinessDataProvidersSection : ConfigurationSection 7
{ 8
//人员提供程序配置项 9
[ConfigurationProperty("peopleProviderName", IsRequired = true)] 10
public string PeopleProviderName 11
{ 12
get { return (string)this["peopleProviderName"]; } 13
set { this["peopleProviderName"] = value; } 14
} 15
//信誉提供程序配置项 16
[ConfigurationProperty("testimonialsProviderName", IsRequired = true)] 17
public string TestimonialsProviderName 18
{ 19
get { return (string)this["testimonialsProviderName"]; } 20
set { this["testimonialsProviderName"] = value; } 21
} 22
//新闻提供程序配置项 23
[ConfigurationProperty("newsProviderName", IsRequired = true)] 24
public string NewsProviderName 25
{ 26
get { return (string)this["newsProviderName"]; } 27
set { this["newsProviderName"] = value; } 28
} 29
//分类提供程序配置项 30
[ConfigurationProperty("catalogProviderName", IsRequired = true)] 31
public string CatalogProviderName 32
{ 33
get { return (string)this["catalogProviderName"]; } 34
set { this["catalogProviderName"] = value; } 35
} 36
37
//人员提供程序集合 38
[ConfigurationProperty("PeopleProviders")] 39
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))] 40
public ProviderSettingsCollection PeopleProviders 41
{ 42
get { return (ProviderSettingsCollection)this["PeopleProviders"]; } 43
44
} 45
//客户信誉提供程序集合 46
[ConfigurationProperty("TestimonialsProviders")] 47
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))] 48
public ProviderSettingsCollection TestimonialsProviders 49
{ 50
get { return (ProviderSettingsCollection)this["TestimonialsProviders"]; } 51
52
} 53
//新闻提供程序集合 54
[ConfigurationProperty("NewsProviders")] 55
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))] 56
public ProviderSettingsCollection NewsProviders 57
{ 58
get { return (ProviderSettingsCollection)this["NewsProviders"]; } 59
60
} 61
//分类提供程序集合 62
[ConfigurationProperty("CatalogProviders")] 63
[ConfigurationValidatorAttribute(typeof(ProviderSettingsValidation))] 64
public ProviderSettingsCollection CatalogProviders 65
{ 66
get { return (ProviderSettingsCollection)this["CatalogProviders"]; } 67
68
} 69
} // end class 70








}