BlogEngine.Core/Providers/BlogProviderSection.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Configuration;
namespace BlogEngine.Core.Providers
{
/// <summary>
/// A configuration section for web.config.
/// </summary>
/// <remarks>
/// In the config section you can specify the provider you
/// want to use for BlogEngine.NET.
/// </remarks>
public class BlogProviderSection : ConfigurationSection
{
/// <summary>
/// A collection of registered providers.
/// </summary>
[ConfigurationProperty("providers")]
public ProviderSettingsCollection Providers
{
get { return (ProviderSettingsCollection)base["providers"]; }
}
/// <summary>
/// The name of the default provider
/// </summary>
[StringValidator(MinLength = 1)]
[ConfigurationProperty("defaultProvider", DefaultValue = "XmlBlogProvider")]
public string DefaultProvider
{
get { return (string)base["defaultProvider"]; }
set { base["defaultProvider"] = value; }
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
