Microsoft.Web.Administration.ConfigurationElement.ParseAttributes C# (CSharp) Method

ParseAttributes() private method

private ParseAttributes ( ) : void
return void
        private void ParseAttributes()
        {
            if (this.InnerEntity == null)
            {
                return;
            }

            foreach (var attribute in this.InnerEntity.Attributes())
            {
                try
                {
                    ParseAttribute(attribute);
                }
                catch (COMException ex)
                {
                    throw new COMException(
                        string.Format(
                            "Line number: {0}\r\nError: The '{1}' attribute is invalid.  {2}\r\n",
                            (this.InnerEntity as IXmlLineInfo).LineNumber,
                            attribute.Name,
                            ex.Message));
                }
                catch (ArgumentException ex)
                {
                    throw new COMException(
                        string.Format(
                            "Line number: {0}\r\nError: {1}\r\n",
                            (this.InnerEntity as IXmlLineInfo).LineNumber,
                            ex.Message));
                }
            }

            Validate(true);
        }