System.Xml.XmlConvert.CreateException C# (CSharp) Méthode

CreateException() static private méthode

static private CreateException ( string res, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
res string
exceptionType ExceptionType
lineNo int
linePos int
Résultat System.Exception
        internal static Exception CreateException(string res, ExceptionType exceptionType, int lineNo, int linePos)
        {
            switch (exceptionType)
            {
                case ExceptionType.ArgumentException:
                    return new ArgumentException(res);
                case ExceptionType.XmlException:
                default:
                    return new XmlException(res, string.Empty, lineNo, linePos);
            }
        }

Same methods

XmlConvert::CreateException ( string res, ExceptionType exceptionType ) : Exception
XmlConvert::CreateException ( string res, string arg, ExceptionType exceptionType ) : Exception
XmlConvert::CreateException ( string res, string arg, ExceptionType exceptionType, int lineNo, int linePos ) : Exception