protected override ConfigurationElement CreateNewElement(string elementName)
 {
     var authorizationRule = new MatchFilterElement();
     switch (elementName.ToLower(CultureInfo.InvariantCulture))
     {
         case "allow":
             authorizationRule.Action = AuthorizationRuleAction.Allow;
             break;
         case "deny":
             authorizationRule.Action = AuthorizationRuleAction.Deny;
             break;
     }
     return authorizationRule;
 }
        protected override ConfigurationElement CreateNewElement(string elementName)
        {
            var authorizationRule = new MatchFilterElement();

            switch (elementName.ToLower(CultureInfo.InvariantCulture))
            {
            case "allow":
                authorizationRule.Action = AuthorizationRuleAction.Allow;
                break;

            case "deny":
                authorizationRule.Action = AuthorizationRuleAction.Deny;
                break;
            }
            return(authorizationRule);
        }