4 overrides of OwnerDocument
System.Private.Xml (4)
System\Xml\Dom\XmlAttribute.cs (1)
100
public override XmlDocument
OwnerDocument
System\Xml\Dom\XmlDocument.cs (1)
421
public override XmlDocument?
OwnerDocument
System\Xml\Dom\XmlDocumentFragment.cs (1)
81
public override XmlDocument
OwnerDocument
System\Xml\Dom\XmlElement.cs (1)
124
public override XmlDocument
OwnerDocument
93 references to OwnerDocument
Microsoft.Build (3)
Evaluation\Preprocessor.cs (3)
222
XmlDocument sourceDocument = source.
OwnerDocument
?? (XmlDocument)source;
223
XmlDocument destinationDocument = destination.
OwnerDocument
?? (XmlDocument)destination;
268
AddImplicitImportNodes(child.
OwnerDocument
.DocumentElement);
Microsoft.Build.Tasks.Core (11)
BootstrapperUtil\BootstrapperBuilder.cs (11)
566
XmlNode resourcesNode = rootNode.
OwnerDocument
.ImportNode(rootNode, true);
568
var newAttribute = (XmlAttribute)rootNode.
OwnerDocument
.ImportNode(cultureAttribute, false);
1143
XmlAttribute attribute = targetNode.
OwnerDocument
.CreateAttribute(attributeName);
1171
XmlAttribute sourcePathAttribute = packageFilesNode.
OwnerDocument
.CreateAttribute("SourcePath");
1175
XmlAttribute targetPathAttribute = packageFilesNode.
OwnerDocument
.CreateAttribute("TargetPath");
1181
XmlAttribute oldNameAttribute = packageFilesNode.
OwnerDocument
.CreateAttribute("OldName");
1248
mergeSubNode.AppendChild(mergeSubNode.
OwnerDocument
.ImportNode(nextNode, true));
1252
mergeSubNode.AppendChild(mergeSubNode.
OwnerDocument
.ImportNode(queryResultNode, true));
1269
mergeSubNode.AppendChild(mergeSubNode.
OwnerDocument
.ImportNode(nextNode, true));
1513
XmlAttribute sizeAttribute = packageFileNode.
OwnerDocument
.CreateAttribute("Size");
1942
XmlAttribute attrib = node.
OwnerDocument
.CreateAttribute(attributeName);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
407
var hasXamlCompilationProcessingInstruction = GetXamlCompilationProcessingInstruction(root.
OwnerDocument
);
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
134
var attribute = targetNode.
OwnerDocument
.CreateAttribute(AttributeName);
PresentationFramework (1)
MS\Internal\Data\XmlBindingWorker.cs (1)
376
XmlDocument doc = node.
OwnerDocument
;
System.Data.Common (7)
System\Xml\DataPointer.cs (3)
85
Debug.Assert(_node == _doc || _node.
OwnerDocument
== _doc);
96
Debug.Assert(node == _doc || node.
OwnerDocument
== _doc);
107
Debug.Assert(node == _doc || node.
OwnerDocument
== _doc);
System\Xml\TreeIterator.cs (1)
16
internal TreeIterator(XmlNode nodeTop) : base(((XmlDataDocument)(nodeTop.
OwnerDocument
!)).Mapper)
System\Xml\XmlDataDocument.cs (1)
2945
Debug.Assert(node.
OwnerDocument
== this || node == this);
System\Xml\XPathNodePointer.cs (2)
479
Debug.Assert(node == _doc || node.
OwnerDocument
== _doc);
488
Debug.Assert(node == _doc || node.
OwnerDocument
== _doc);
System.Private.Xml (66)
System\Xml\Dom\DocumentXPathNavigator.cs (2)
1253
ownerDocument = _source.
OwnerDocument
;
1834
Debug.Assert(node == _document || node.
OwnerDocument
== _document, "Navigator switched documents");
System\Xml\Dom\XmlAttributeCollection.cs (13)
139
if (node.OwnerDocument != null && node.OwnerDocument != parent.
OwnerDocument
)
157
if (doc != null && doc != parent.
OwnerDocument
)
187
if (newNode.OwnerDocument != null && newNode.OwnerDocument != parent.
OwnerDocument
)
216
if (newNode.OwnerDocument != null && newNode.OwnerDocument != parent.
OwnerDocument
)
322
XmlAttribute? defattr = parent.
OwnerDocument
!.GetDefaultAttribute((XmlElement)parent, retNode.Prefix, retNode.LocalName, retNode.NamespaceURI);
340
if (parent.
OwnerDocument
== null)
343
XmlName? attrname = parent.
OwnerDocument
.GetIDInfoByElement(parentElem.XmlName);
346
parent.
OwnerDocument
.AddElementWithId(attr.Value, parentElem); //add the element into the hashtable
357
if (parent.
OwnerDocument
== null)
360
XmlName? attrname = parent.
OwnerDocument
.GetIDInfoByElement(parentElem.XmlName);
363
parent.
OwnerDocument
.RemoveElementWithId(attr.Value, parentElem); //remove the element from the hashtable
387
XmlDocument? doc = parent.
OwnerDocument
;
404
XmlDocument? doc = parent.
OwnerDocument
;
System\Xml\Dom\XmlCDataSection.cs (4)
22
return
OwnerDocument
!.strCDataSectionName;
31
return
OwnerDocument
!.strCDataSectionName;
72
Debug.Assert(
OwnerDocument
!= null);
73
return
OwnerDocument
.CreateCDataSection(Data);
System\Xml\Dom\XmlComment.cs (4)
19
get { return
OwnerDocument
!.strCommentName; }
25
get { return
OwnerDocument
!.strCommentName; }
37
Debug.Assert(
OwnerDocument
!= null);
38
return
OwnerDocument
.CreateComment(Data);
System\Xml\Dom\XmlDeclaration.cs (2)
160
Debug.Assert(
OwnerDocument
!= null);
161
return
OwnerDocument
.CreateXmlDeclaration(Version, Encoding, Standalone);
System\Xml\Dom\XmlDocumentType.cs (2)
61
Debug.Assert(
OwnerDocument
!= null);
62
return
OwnerDocument
.CreateDocumentType(_name, _publicId, _systemId, _internalSubset);
System\Xml\Dom\XmlEntityReference.cs (5)
84
Debug.Assert(
OwnerDocument
!= null);
85
XmlEntityReference eref =
OwnerDocument
.CreateEntityReference(_name);
110
if (LastNode == null && node != null && node !=
OwnerDocument
)
178
return
OwnerDocument
!.BaseURI;
207
XmlEntity? ent =
OwnerDocument
!.GetEntityNode(_name);
System\Xml\Dom\XmlLoader.cs (4)
585
XmlDocument doc = dtNode.
OwnerDocument
!;
595
_doc = dtNode.
OwnerDocument
;
750
_doc = parentNode.
OwnerDocument
;
877
_doc = eref.
OwnerDocument
;
System\Xml\Dom\XmlNode.cs (14)
43
XmlDocument? doc =
OwnerDocument
;
190
return parentNode.
OwnerDocument
;
265
XmlDocument? childDoc = newChild.
OwnerDocument
;
266
XmlDocument? thisDoc =
OwnerDocument
;
379
XmlDocument? childDoc = newChild.
OwnerDocument
;
380
XmlDocument? thisDoc =
OwnerDocument
;
582
XmlDocument? thisDoc =
OwnerDocument
?? this as XmlDocument;
591
XmlDocument? childDoc = newChild.
OwnerDocument
;
959
AppendChild(
OwnerDocument
!.CreateTextNode(value));
1064
return
OwnerDocument
!;
1272
this.parentNode =
OwnerDocument
;
1315
XmlDocument? doc =
OwnerDocument
;
1333
OwnerDocument
!.BeforeEvent(args);
1339
OwnerDocument
!.AfterEvent(args);
System\Xml\Dom\XmlNodeReader.cs (1)
92
_doc = node.
OwnerDocument
!;
System\Xml\Dom\XmlProcessingInstruction.cs (2)
82
Debug.Assert(
OwnerDocument
!= null);
83
return
OwnerDocument
.CreateProcessingInstruction(_target, _data);
System\Xml\Dom\XmlSignificantWhiteSpace.cs (4)
23
return
OwnerDocument
!.strSignificantWhitespaceName;
32
return
OwnerDocument
!.strSignificantWhitespaceName;
72
Debug.Assert(
OwnerDocument
!= null);
73
return
OwnerDocument
.CreateSignificantWhitespace(Data);
System\Xml\Dom\XmlText.cs (5)
26
return
OwnerDocument
!.strTextName;
35
return
OwnerDocument
!.strTextName;
76
Debug.Assert(
OwnerDocument
!= null);
77
return
OwnerDocument
.CreateTextNode(Data);
116
XmlText newTextNode =
OwnerDocument
!.CreateTextNode(splitData);
System\Xml\Dom\XmlWhitespace.cs (4)
24
return
OwnerDocument
!.strNonSignificantWhitespaceName;
33
return
OwnerDocument
!.strNonSignificantWhitespaceName;
88
Debug.Assert(
OwnerDocument
!= null);
89
return
OwnerDocument
.CreateWhitespace(Data);
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
849
XmlNode dummy = parent.
OwnerDocument
!.CreateElement(parent.Prefix, parent.LocalName, parent.NamespaceURI);
System\Security\Cryptography\Xml\Utils.cs (2)
464
if (node.
OwnerDocument
!= null)
465
return node.
OwnerDocument
;