Beispiel #1
0
        private static XmlNode GetAndRemoveNonEmptyStringAttributeInternal(XmlNode node, string attrib, bool fRequired, ref string val)
        {
            XmlNode andRemoveStringAttributeInternal = SecUtility.GetAndRemoveStringAttributeInternal(node, attrib, fRequired, ref val);

            if (andRemoveStringAttributeInternal != null && val.Length == 0)
            {
                throw new ConfigurationErrorsException(SR.GetString("The '{0}' attribute cannot be an empty string.", attrib), andRemoveStringAttributeInternal);
            }
            return(andRemoveStringAttributeInternal);
        }
Beispiel #2
0
 internal static XmlNode GetAndRemoveStringAttribute(XmlNode node, string attrib, ref string val)
 {
     return(SecUtility.GetAndRemoveStringAttributeInternal(node, attrib, false, ref val));
 }