?? 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 + -