温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:LiveBlog v1.0测试版源码
当前文件:
LiveBlog/LiveBlog.Core/Providers/BlogProviderSection.cs,打开代码结构图
LiveBlog/LiveBlog.Core/Providers/BlogProviderSection.cs,打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Configuration; 4
5
namespace LiveBlog.Core.Providers 6
{ 7
/// <summary> 8
/// A configuration section for web.config. 9
/// </summary> 10
/// <remarks> 11
/// In the config section you can specify the provider you 12
/// want to use for BlogEngine.NET. 13
/// </remarks> 14
public class BlogProviderSection : ConfigurationSection 15
{ 16
17
/// <summary> 18
/// A collection of registered providers. 19
/// </summary> 20
[ConfigurationProperty("providers")] 21
public ProviderSettingsCollection Providers 22
{ 23
get { return (ProviderSettingsCollection)base["providers"]; } 24
} 25
26
/// <summary> 27
/// The name of the default provider 28
/// </summary> 29
[StringValidator(MinLength = 1)] 30
[ConfigurationProperty("defaultProvider", DefaultValue = "XmlBlogProvider")] 31
public string DefaultProvider 32
{ 33
get { return (string)base["defaultProvider"]; } 34
set { base["defaultProvider"] = value; } 35
} 36
37
} 38
} 39





}