Base:
property
OwnerDocument
System.Xml.XmlNode.OwnerDocument
74 references to OwnerDocument
Microsoft.Build (8)
Construction\ProjectElement.cs (3)
334return (XmlDocumentWithLocation)XmlElement?.OwnerDocument; 390XmlElement.AppendChild(XmlElement.OwnerDocument.CreateTextNode(pureText)); 409XmlElement.AppendChild(XmlElement.OwnerDocument.CreateTextNode(element.XmlElement.FirstChild.Value));
ElementLocation\XmlElementWithLocation.cs (1)
96XmlDocumentWithLocation ownerDocumentWithLocation = (XmlDocumentWithLocation)OwnerDocument;
Evaluation\Preprocessor.cs (3)
169if (!_implicitImportsByProject.TryGetValue(documentElement.OwnerDocument, out implicitImports)) 182XmlElement xmlElement = (XmlElement)documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false); 208XmlElement xmlElement = (XmlElement)documentElement.InsertAfter(documentElement.OwnerDocument.ImportNode(import.ImportingElement.XmlElement, false), documentElement.LastChild);
XmlUtilities.cs (1)
36(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Microsoft.Build.Tasks.Core (9)
BootstrapperUtil\BootstrapperBuilder.cs (6)
990mergeElement.Attributes.Append((XmlAttribute)(mergeElement.OwnerDocument.ImportNode(attribute, false))); 995var convertedAttribute = (XmlAttribute)(mergeElement.OwnerDocument.ImportNode(attribute, false)); 1549configElement.AppendChild(configElement.OwnerDocument.ImportNode(node, true)); 1920applicationElement = configElement.OwnerDocument.CreateElement("Application"); 1929XmlElement filesNode = applicationElement.OwnerDocument.CreateElement("Files"); 1930XmlElement fileNode = filesNode.OwnerDocument.CreateElement("File");
ManifestUtil\SecurityUtil.cs (1)
439XmlNamespaceManager nsmgr = XmlNamespaces.GetNamespaceManager(psElement.OwnerDocument.NameTable);
ManifestUtil\TrustInfo.cs (2)
44sameSiteAttribute = permissionSetElement.OwnerDocument.CreateAttribute(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute)); 66XmlDocument document = permissionSetElement.OwnerDocument;
PresentationFramework (13)
MS\Internal\Annotations\XmlElementCollection.cs (13)
152Invariant.Assert(_xmlDocsRefCounts.ContainsKey(element.OwnerDocument), "Not registered on XmlElement"); 155_xmlDocsRefCounts[element.OwnerDocument]--; 159if (_xmlDocsRefCounts[element.OwnerDocument] == 0) 161element.OwnerDocument.NodeChanged -= OnNodeChanged; 162element.OwnerDocument.NodeInserted -= OnNodeChanged; 163element.OwnerDocument.NodeRemoved -= OnNodeChanged; 164_xmlDocsRefCounts.Remove(element.OwnerDocument); 182if (!_xmlDocsRefCounts.ContainsKey(element.OwnerDocument)) 186_xmlDocsRefCounts[element.OwnerDocument] = 1; 188element.OwnerDocument.NodeChanged += handler; 189element.OwnerDocument.NodeInserted += handler; 190element.OwnerDocument.NodeRemoved += handler; 195_xmlDocsRefCounts[element.OwnerDocument]++;
System.Data.Common (10)
System\Data\XDRSchema.cs (2)
92vn = node.OwnerDocument.FirstChild; 93vnRoof = node.OwnerDocument;
System\Xml\RegionIterator.cs (1)
23internal RegionIterator(XmlBoundElement rowElement) : base(((XmlDataDocument)(rowElement.OwnerDocument)).Mapper)
System\Xml\XmlBoundElement.cs (7)
159XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 204XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 211XmlDataDocument doc = (XmlDataDocument)OwnerDocument; 217XmlDataDocument doc = (XmlDataDocument)(OwnerDocument); 239DataPointer dp = new DataPointer((XmlDataDocument)OwnerDocument, this); 253DataPointer dp = new DataPointer((XmlDataDocument)OwnerDocument, this); 268XmlDataDocument doc = (XmlDataDocument)OwnerDocument;
System.Private.Xml (8)
System\Xml\Dom\XmlElement.cs (8)
54Debug.Assert(OwnerDocument != null); 55XmlDocument doc = OwnerDocument; 244lock (OwnerDocument.objLock) 284attr = OwnerDocument.CreateAttribute(name); 355attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 387attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 610AppendChild(OwnerDocument.CreateTextNode(value)); 638if (ns == OwnerDocument.strReservedXmlns)
System.Security.Cryptography.Xml (26)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (2)
59XmlAttribute nsattrib = (XmlAttribute)OwnerDocument.CreateAttribute(name); 131XmlAttribute nsattrib = (XmlAttribute)OwnerDocument.CreateAttribute(name);
System\Security\Cryptography\Xml\CipherData.cs (1)
106XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\CipherReference.cs (1)
83XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
168XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedData.cs (1)
20XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
59XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
122XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\EncryptedXml.cs (2)
842XmlNode importedNode = inputElement.OwnerDocument.ImportNode(importDocument.DocumentElement!, true); 899XmlElement elemED = encryptedData.GetXml(inputElement.OwnerDocument);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
89XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
287XmlNamespaceManager nsm = new XmlNamespaceManager(element.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Reference.cs (4)
222XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable); 280referenceTarget = transformElement.OwnerDocument; 287referenceTarget = transformElement.OwnerDocument; 291referenceTarget = SignedXml!.GetIdElement(transformElement.OwnerDocument, idref);
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
123XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Signature.cs (1)
151XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\SignedInfo.cs (1)
217XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\SignedXml.cs (1)
127_containingDocument = element?.OwnerDocument;
System\Security\Cryptography\Xml\TransformChain.cs (1)
179XmlNamespaceManager nsm = new XmlNamespaceManager(value.OwnerDocument.NameTable);
System\Security\Cryptography\Xml\Utils.cs (5)
479XmlAttribute nsattrib = (XmlAttribute)elem.OwnerDocument.CreateAttribute(name); 493XmlAttribute nsattrib = (XmlAttribute)elem.OwnerDocument.CreateAttribute(key); 524XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute(name); 537XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute("xmlns"); 557XmlAttribute nsattrib = elem.OwnerDocument.CreateAttribute(name);