20 references to ArgumentException
System.Private.Xml (20)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3451XmlConvert.VerifyCharData(val, ExceptionType.ArgumentException, ExceptionType.XmlException);
System\Xml\Core\XmlCharCheckingReader.cs (1)
623XmlConvert.VerifyCharData(value, ExceptionType.ArgumentException, ExceptionType.XmlException);
System\Xml\Core\XmlCharCheckingWriter.cs (2)
327XmlConvert.VerifyCharData(str, ExceptionType.ArgumentException); 332XmlConvert.VerifyCharData(data, offset, len, ExceptionType.ArgumentException);
System\Xml\Core\XmlWriter.cs (2)
216WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 223WriteString(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Core\XmlWriterAsync.cs (2)
202return WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 209return WriteStringAsync(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Dom\DocumentXmlWriter.cs (5)
283XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 291XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 299XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 320XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 331XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
System\Xml\XmlConvert.cs (7)
1533case ExceptionType.ArgumentException: 1550case ExceptionType.ArgumentException: 1567case ExceptionType.ArgumentException: 1577return CreateInvalidSurrogatePairException(low, hi, ExceptionType.ArgumentException); 1596return CreateInvalidHighSurrogateCharException(hi, ExceptionType.ArgumentException); 1616return CreateInvalidCharException(data, invCharPos, ExceptionType.ArgumentException); 1626return CreateInvalidCharException(invChar, nextChar, ExceptionType.ArgumentException);