System.Configuration.ConfigurationElement.GetErrorsList C# (CSharp) Method

GetErrorsList() private method

private GetErrorsList ( ) : ArrayList
return System.Collections.ArrayList
        internal ArrayList GetErrorsList() {
            ArrayList errorList = new ArrayList();
            
            ListErrors(errorList);
            
            return errorList;
        }

Usage Example

Example #1
0
        private ConfigurationException[] GetReadOnlyErrorsList()
        {
            int count;

            ArrayList arrayList = _thisElement.GetErrorsList();

            count = arrayList.Count;

            // Create readonly array
            ConfigurationException[] exceptionList = new ConfigurationException[arrayList.Count];

            if (count != 0)
            {
                arrayList.CopyTo(exceptionList, 0);
            }

            return(exceptionList);
        }