⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 querystringssection.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.Web.Configuration
{
    using System;
    using System.Configuration;

    public sealed class QueryStringsSection : ConfigurationSection
    {
        private static readonly ConfigurationProperty m_Mode = new ConfigurationProperty("mode", typeof(QueryStringsMode), QueryStringsMode.On, ConfigurationPropertyOptions.IsRequired);
        private static readonly ConfigurationProperty m_Page = new ConfigurationProperty(null, typeof(PageElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
        private static ConfigurationPropertyCollection m_Properties = new ConfigurationPropertyCollection();

        public QueryStringsSection()
        {
            m_Properties.Add(m_Mode);
            m_Properties.Add(m_Page);
        }

        [ConfigurationProperty("mode", DefaultValue=0, IsRequired=true)]
        public string Mode
        {
            get
            {
                return (string) base[m_Mode];
            }
            set
            {
                base[m_Mode] = value;
            }
        }

        [ConfigurationProperty("page", IsDefaultCollection=true)]
        public PageElementCollection Page
        {
            get
            {
                return (PageElementCollection) base[m_Page];
            }
        }

        protected override ConfigurationPropertyCollection Properties
        {
            get
            {
                return m_Properties;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -