📄 checkpermissionselement.cs
字号:
namespace PowerEasy.Web.Configuration
{
using System;
using System.Configuration;
public sealed class CheckPermissionsElement : ConfigurationElement
{
private static readonly ConfigurationProperty m_Mode = new ConfigurationProperty("mode", typeof(NoCheckType), NoCheckType.OnlyList, ConfigurationPropertyOptions.IsRequired);
private static readonly ConfigurationProperty m_Page = new ConfigurationProperty(null, typeof(PermissionsPageElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
private static ConfigurationPropertyCollection m_Properties = new ConfigurationPropertyCollection();
public CheckPermissionsElement()
{
m_Properties.Add(m_Page);
m_Properties.Add(m_Mode);
}
[ConfigurationProperty("mode", DefaultValue=1, IsRequired=true)]
public NoCheckType Mode
{
get
{
return (NoCheckType) base[m_Mode];
}
set
{
base[m_Mode] = value;
}
}
[ConfigurationProperty("page", IsDefaultCollection=true)]
public PermissionsPageElementCollection Page
{
get
{
return (PermissionsPageElementCollection) base[m_Page];
}
}
protected override ConfigurationPropertyCollection Properties
{
get
{
return m_Properties;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -