8 overrides of ParentNode
System.Private.Xml (8)
System\Xml\Dom\XmlAttribute.cs (1)
62
public override XmlNode?
ParentNode
System\Xml\Dom\XmlCDataSection.cs (1)
44
public override XmlNode?
ParentNode
System\Xml\Dom\XmlDocument.cs (1)
361
public override XmlNode?
ParentNode
System\Xml\Dom\XmlDocumentFragment.cs (1)
75
public override XmlNode?
ParentNode
System\Xml\Dom\XmlElement.cs (1)
115
public override XmlNode?
ParentNode
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
45
public override XmlNode?
ParentNode
System\Xml\Dom\XmlText.cs (1)
48
public override XmlNode?
ParentNode
System\Xml\Dom\XmlWhitespace.cs (1)
46
public override XmlNode?
ParentNode
151 references to ParentNode
Microsoft.Build (1)
Evaluation\Preprocessor.cs (1)
111
node.
ParentNode
?.RemoveChild(node);
Microsoft.Build.Tasks.Core (1)
ManifestUtil\mansign2.cs (1)
454
signatureNode.
ParentNode
.RemoveChild(signatureNode);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiAddFileTests.cs (2)
97
Assert.Same(openApiRefs[0].
ParentNode
, openApiRefs[1].
ParentNode
);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
709
onNode.
ParentNode
.RemoveChild(onNode);
PresentationFramework (2)
MS\Internal\Annotations\XmlElementCollection.cs (1)
233
current = current.
ParentNode
;
MS\Internal\Data\XmlBindingWorker.cs (1)
647
parent = parent.
ParentNode
;
System.Data.Common (40)
System\Data\XDRSchema.cs (1)
115
vn = vn.
ParentNode
;
System\Data\XmlDataLoader.cs (1)
443
n = n.
ParentNode
;
System\Data\XmlToDatasetMap.cs (2)
441
XmlNode? nodeRegion = (node.NodeType == XmlNodeType.Attribute) ? ((XmlAttribute)node).OwnerElement : node.
ParentNode
;
451
nodeRegion = nodeRegion.
ParentNode
;
System\Xml\DataPointer.cs (1)
270
XmlNode? n = _node.
ParentNode
;
System\Xml\DataSetMappper.cs (1)
230
node = node.
ParentNode
;
System\Xml\RegionIterator.cs (1)
91
nextNode = nextNode.
ParentNode
;
System\Xml\TreeIterator.cs (1)
63
nextNode = nextNode.
ParentNode
;
System\Xml\XmlDataDocument.cs (11)
2257
Debug.Assert(child.
ParentNode
!= prevSibling.
ParentNode
);
2259
Debug.Assert(prevSibling.
ParentNode
!= null);
2265
child.
ParentNode
?.RemoveChild(child);
2267
Debug.Assert(child.
ParentNode
== null);
2268
prevSibling.
ParentNode
.InsertAfter(child, prevSibling);
2280
DataSetMapper.GetRegion(parent.
ParentNode
, out parentRegionRowElem);
2320
node.
ParentNode
!.RemoveChild(node);
2646
node = node.
ParentNode
;
2952
XmlNode? parent = node.
ParentNode
;
2961
XmlBoundElement? be = node.
ParentNode
as XmlBoundElement;
System\Xml\XPathNodePointer.cs (21)
314
XmlNode? parent = _node.
ParentNode
;
426
curNode = curNode.
ParentNode
!;
757
XmlNode? parent = _node.
ParentNode
;
803
XmlNode? parent = _node.
ParentNode
;
852
parent = _node.
ParentNode
;
1001
n = _node.
ParentNode
;
1022
return node.
ParentNode
;
1074
XmlNode? parent = ((curNode.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.
ParentNode
));
1078
parent = curNode.
ParentNode
; // no need to check for attribute since navigator can't be built on its children or navigate to its children
1183
curNode1 = ((curNode1.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.
ParentNode
));
1193
curNode2 = ((curNode2.NodeType == XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.
ParentNode
));
1218
parent1 = curNode1.
ParentNode
;
1219
parent2 = curNode2.
ParentNode
;
1380
node = node.
ParentNode
;
1390
node = node.
ParentNode
;
1443
node = node.
ParentNode
;
1529
node = node.
ParentNode
;
1559
node = node.
ParentNode
;
1600
node = node.
ParentNode
;
1619
node = node.
ParentNode
;
1632
node = node.
ParentNode
;
System.Private.Xml (95)
System\Xml\Dom\DocumentSchemaValidator.cs (6)
123
if (nodeToValidate.
ParentNode
!.NodeType == XmlNodeType.Document)
126
nodeToValidate = nodeToValidate.
ParentNode
;
208
node = node.
ParentNode
;
214
node = node.
ParentNode
;
493
XmlNode? parentNode = currentNode.
ParentNode
;
503
parentNode = parentNode.
ParentNode
;
System\Xml\Dom\DocumentXmlWriter.cs (5)
173
_write = _write.
ParentNode
;
372
XmlNode? parent = _start.
ParentNode
;
385
parent = _start.
ParentNode
;
456
XmlNode? parent = _start.
ParentNode
;
544
XmlNode? parent = _start.
ParentNode
;
System\Xml\Dom\DocumentXPathNavigator.cs (18)
375
node = node.
ParentNode
;
548
XmlElement? element = attributes.parent.
ParentNode
as XmlElement;
662
XmlElement? element = attributes.parent.
ParentNode
as XmlElement;
861
XmlNode? parent = _source.
ParentNode
;
1009
XmlNode? parent = following.
ParentNode
;
1097
XmlNode? parent = following.
ParentNode
;
1279
XmlNode? parent = node.
ParentNode
;
1555
writer.NamespaceManager = GetNamespaceManager(node.
ParentNode
, _document);
1579
writer.NamespaceManager = GetNamespaceManager(_source.
ParentNode
, _document);
1640
writer.NamespaceManager = GetNamespaceManager(node.
ParentNode
, _document);
1778
XmlNode? parent = node.
ParentNode
;
1811
node = node.
ParentNode
;
1899
XmlNode? parent = node.
ParentNode
;
1913
parent = parent.
ParentNode
;
1955
current = current.
ParentNode
;
1987
current = current.
ParentNode
;
2028
current = current.
ParentNode
;
2077
XmlNode? parent = bottom.
ParentNode
;
System\Xml\Dom\XmlCharacterData.cs (7)
55
XmlNode? parent =
ParentNode
;
101
XmlNode? parent =
ParentNode
;
119
XmlNode? parent =
ParentNode
;
148
XmlNode? parent =
ParentNode
;
176
XmlNode? parent =
ParentNode
;
201
Debug.Assert(XmlDocument.IsTextNode(n.NodeType) || (n.
ParentNode
!= null && n.
ParentNode
.NodeType == XmlNodeType.EntityReference));
System\Xml\Dom\XmlDocument.cs (11)
499
if (refNode.
ParentNode
!= null)
500
node = refNode.
ParentNode
.FirstChild;
776
parent = node.
ParentNode
;
788
parent = parent.
ParentNode
;
800
parent = node.
ParentNode
;
813
parent = parent.
ParentNode
;
859
if (intnode.
ParentNode
!= null && intnode.
ParentNode
.NodeType == XmlNodeType.EntityReference)
861
if (intnode.
ParentNode
.PreviousSibling != null)
863
n = intnode.
ParentNode
.PreviousSibling;
868
intnode = intnode.
ParentNode
;
System\Xml\Dom\XmlElement.cs (2)
492
while (n != root && n == n.
ParentNode
!.LastChild)
494
n = n.
ParentNode
;
System\Xml\Dom\XmlElementList.cs (2)
120
retNode = retNode.
ParentNode
;
149
retNode ??= curNode.
ParentNode
;
System\Xml\Dom\XmlLinkedNode.cs (2)
21
XmlNode? parent =
ParentNode
;
48
XmlNode? parent =
ParentNode
;
System\Xml\Dom\XmlLoader.cs (7)
158
if (parent.
ParentNode
== null)
162
parent = parent.
ParentNode
;
240
while (parent.
ParentNode
!= null)
242
parent = parent.
ParentNode
;
495
if (parent.
ParentNode
== null)
500
parent = parent.
ParentNode
;
729
node = node.
ParentNode
;
System\Xml\Dom\XmlNamedNodemap.cs (2)
148
oldParent = node.
ParentNode
;
215
oldParent = node.
ParentNode
;
System\Xml\Dom\XmlNode.cs (23)
226
XmlNode? n = this.
ParentNode
;
232
n = n.
ParentNode
;
241
XmlNode? parent =
ParentNode
;
243
parent = parent.
ParentNode
;
259
if (refChild.
ParentNode
!= this)
273
newChild.
ParentNode
?.RemoveChild(newChild);
298
XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.
ParentNode
, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert);
373
if (refChild.
ParentNode
!= this)
387
newChild.
ParentNode
?.RemoveChild(newChild);
413
XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.
ParentNode
, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert);
493
if (oldChild.
ParentNode
!= this)
589
newChild.
ParentNode
?.RemoveChild(newChild);
619
XmlNodeChangedEventArgs? args = GetEventArgs(newChild, newChild.
ParentNode
, this, newChildValue, newChildValue, XmlNodeChangedAction.Insert);
870
n = n.
ParentNode
;
1019
XmlNode? curNode = this.
ParentNode
; //save one while loop since if going to here, the nodetype of this node can't be document, entity and entityref
1031
curNode = curNode.
ParentNode
;
1134
node = node.
ParentNode
;
1142
node = node.
ParentNode
;
1213
node = node.
ParentNode
;
1221
node = node.
ParentNode
;
1365
node = node.
ParentNode
;
1387
node = node.
ParentNode
;
1444
nextNode.parentNode = prevNode.
ParentNode
;
System\Xml\Dom\XmlNodeReader.cs (6)
593
while (_curNode.NodeType != XmlNodeType.Attribute && ((_curNode = _curNode.
ParentNode
!) != null))
777
XmlNode? parent = _curNode.
ParentNode
;
892
node = node.
ParentNode
;
979
node = node.
ParentNode
;
1032
node = node.
ParentNode
;
1092
XmlNode? parentNode = _curNode.
ParentNode
;
System\Xml\Dom\XmlProcessingInstruction.cs (1)
50
XmlNode? parent =
ParentNode
;
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
52
return base.
ParentNode
;
System\Xml\Dom\XmlWhitespace.cs (1)
53
return base.
ParentNode
;
System\Xml\Schema\Parser.cs (1)
320
_parentNode = _parentNode!.
ParentNode
;
System.Security.Cryptography.Xml (9)
System\Security\Cryptography\Xml\Utils.cs (5)
53
XmlNode? ancestorNode = ((XmlNode)element).
ParentNode
;
59
ancestorNode = ancestorNode.
ParentNode
;
251
node1.
ParentNode
!.RemoveChild(node1);
515
ancestorNode = ancestorNode.
ParentNode
;
565
ancestorNode = ancestorNode.
ParentNode
;
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (1)
173
signatureList[_signaturePosition - 1]!.
ParentNode
!.RemoveChild(signatureList[_signaturePosition - 1]!);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (3)
91
encryptedGrantList[i]!.
ParentNode
!.InnerXml = clearContent;
152
signatureNode?.
ParentNode
!.RemoveChild(signatureNode);
169
issuerList[i]!.
ParentNode
!.RemoveChild(issuerList[i]!);