24 references to Format
System.Private.Xml.Linq (24)
System\Xml\Linq\XAttribute.cs (1)
710
throw new ArgumentException(SR.
Format
(SR.Argument_NamespaceDeclarationPrefixed, name.LocalName));
System\Xml\Linq\XContainer.cs (4)
950
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, r.NodeType));
1006
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, r.NodeType));
1104
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, r.NodeType));
1220
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, r.NodeType));
System\Xml\Linq\XDocument.cs (2)
918
throw new ArgumentException(SR.
Format
(SR.Argument_AddNode, XmlNodeType.CDATA));
920
throw new ArgumentException(SR.
Format
(SR.Argument_AddNode, XmlNodeType.Document));
System\Xml\Linq\XElement.cs (2)
2125
if (node is XDocument) throw new ArgumentException(SR.
Format
(SR.Argument_AddNode, XmlNodeType.Document));
2126
if (node is XDocumentType) throw new ArgumentException(SR.
Format
(SR.Argument_AddNode, XmlNodeType.DocumentType));
System\Xml\Linq\XName.cs (1)
78
if (i <= 1 || i == expandedName.Length - 1) throw new ArgumentException(SR.
Format
(SR.Argument_InvalidExpandedName, expandedName));
System\Xml\Linq\XNode.cs (2)
445
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, reader.NodeType));
506
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedNodeType, reader.NodeType));
System\Xml\Linq\XNodeDocumentOrderComparer.cs (2)
55
if (n1 == null && x != null) throw new ArgumentException(SR.
Format
(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(x));
57
if (n2 == null && y != null) throw new ArgumentException(SR.
Format
(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(y));
System\Xml\Linq\XNodeEqualityComparer.cs (3)
79
if (n1 == null && x != null) throw new ArgumentException(SR.
Format
(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(x));
81
if (n2 == null && y != null) throw new ArgumentException(SR.
Format
(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(y));
98
if (n == null && obj != null) throw new ArgumentException(SR.
Format
(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(obj));
System\Xml\Linq\XProcessingInstruction.cs (1)
162
if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(SR.
Format
(SR.Argument_InvalidPIName, name));
System\Xml\Schema\XNodeValidator.cs (1)
60
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_BadNodeType, nt));
System\Xml\XPath\XNodeNavigator.cs (5)
684
if (c == null) throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_BadNodeType, NodeType));
875
if (!(result is T)) throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedEvaluation, result.GetType()));
885
if (!(r is T)) throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_UnexpectedEvaluation, r.GetType()));
927
if (node is XDocumentType) throw new ArgumentException(SR.
Format
(SR.Argument_CreateNavigator, XmlNodeType.DocumentType));
931
if (text.GetParent() is XDocument) throw new ArgumentException(SR.
Format
(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));