1 override of AddNamespace
System.Private.Xml (1)
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
155public override void AddNamespace(string prefix, string uri) { }
99 references to AddNamespace
BuildBoss (1)
ProjectUtil.cs (1)
42Manager.AddNamespace("mb", Namespace == XNamespace.None ? "" : SharedUtil.MSBuildNamespaceUriRaw);
Microsoft.Build.Tasks.Core (23)
BootstrapperUtil\BootstrapperBuilder.cs (1)
593_xmlNamespaceManager.AddNamespace(BOOTSTRAPPER_PREFIX, BOOTSTRAPPER_NAMESPACE);
ManifestUtil\mansign2.cs (14)
387nsm.AddNamespace("asm", AssemblyNamespaceUri); 403nsm.AddNamespace("asm", AssemblyNamespaceUri); 404nsm.AddNamespace("asm2", AssemblyV2NamespaceUri); 405nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 449nsm.AddNamespace("asm", AssemblyNamespaceUri); 450nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 498nsm.AddNamespace("asm", AssemblyNamespaceUri); 641nsm.AddNamespace("r", LicenseNamespaceUri); 642nsm.AddNamespace("as", AuthenticodeNamespaceUri); 726nsm.AddNamespace("r", LicenseNamespaceUri); 846nsm.AddNamespace("r", LicenseNamespaceUri); 847nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl); 848nsm.AddNamespace("as", AuthenticodeNamespaceUri); 918nsm.AddNamespace("asm", AssemblyNamespaceUri);
ManifestUtil\XmlNamespaces.cs (6)
22nsmgr.AddNamespace("asmv1", asmv1); 23nsmgr.AddNamespace("asmv2", asmv2); 24nsmgr.AddNamespace("asmv3", asmv3); 25nsmgr.AddNamespace("dsig", dsig); 26nsmgr.AddNamespace("xrml", xrml); 27nsmgr.AddNamespace("xsi", xsi);
XmlPeek.cs (1)
208namespaceManager.AddNamespace(prefix.Value, uri.Value);
XmlPoke.cs (1)
195namespaceManager.AddNamespace(prefix.Value, uri.Value);
Microsoft.Build.Tasks.UnitTests (1)
XmlPoke_Tests.cs (1)
55ns.AddNamespace("s", XmlNamespaceUsedByTests);
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixCommandPackageDropBase.cs (1)
139nsmgr.AddNamespace("wix", "http://schemas.microsoft.com/wix/2006/objects");
Microsoft.Extensions.Configuration.Xml (1)
XmlDocumentDecryptor.cs (1)
50namespaceManager.AddNamespace("enc", "http://www.w3.org/2001/04/xmlenc#");
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (3)
153 nsmgr.AddNamespace("__f__", XamlParser.MauiUri); 169 nsmgr.AddNamespace("", attr.Value); //Add default xmlns 177 nsmgr.AddNamespace(attr.LocalName, attr.Value);
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
448xmlnsMgr.AddNamespace(key, parserContext._xmlnsDictionary[key]);
PresentationFramework (4)
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
742_namespaceManager.AddNamespace(AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace); 743_namespaceManager.AddNamespace(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
92this.AddNamespace(mapping.Prefix, mapping.Uri.OriginalString);
System\Windows\Markup\ParserContext.cs (1)
448xmlnsMgr.AddNamespace(key, parserContext._xmlnsDictionary[key]);
ReachFramework (4)
PrintConfig\PrtTicket_Public.cs (4)
625_nsMgr.AddNamespace(PrintSchemaPrefixes.Framework, PrintSchemaNamespaces.Framework); 626_nsMgr.AddNamespace(PrintSchemaPrefixes.StandardKeywordSet, PrintSchemaNamespaces.StandardKeywordSet); 627_nsMgr.AddNamespace(PrintSchemaPrefixes.xsi, PrintSchemaNamespaces.xsi); 628_nsMgr.AddNamespace(PrintSchemaPrefixes.xsd, PrintSchemaNamespaces.xsd);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
150Namespaces.AddNamespace(prefix, ns);
System.Private.Xml (28)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3201xnm.AddNamespace(decl.prefix, decl.uri);
System\Xml\Core\XmlSubtreeReader.cs (3)
1269_nsManager.AddNamespace(string.Empty, reader.Value); 1275_nsManager.AddNamespace(prefix, reader.Value); 1300_nsManager.AddNamespace(prefix, ns);
System\Xml\Core\XmlTextReaderImpl.cs (1)
7804_namespaceManager.AddNamespace(prefix, uri);
System\Xml\Core\XsdValidatingReader.cs (1)
2112_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value);
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
610_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value);
System\Xml\Dom\DocumentSchemaValidator.cs (2)
354_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value); 703_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value);
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1823namespaceManager.AddNamespace(prefix, attribute.Value);
System\Xml\Dom\XmlLoader.cs (4)
706mgr.AddNamespace(attr.LocalName, attr.Value); 711mgr.AddNamespace(string.Empty, attr.Value); 828mgr.AddNamespace(attr.LocalName, attr.Value); 845mgr.AddNamespace(attr.LocalName, attr.Value);
System\Xml\Schema\Inference\Infer.cs (4)
161_namespaceManager.AddNamespace("xs", XmlSchema.Namespace); 345_namespaceManager.AddNamespace(prefix, childURI); 540_namespaceManager.AddNamespace(prefix, childURI!); 1213_namespaceManager.AddNamespace(_xtr.LocalName, _xtr.Value);
System\Xml\Schema\Parser.cs (3)
188_namespaceManager.AddNamespace(_reader.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 354_annotationNSManager!.AddNamespace(r.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 412_annotationNSManager!.AddNamespace(prefix, value);
System\Xml\Schema\XdrValidator.cs (1)
213_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value);
System\Xml\Schema\XsdValidator.cs (1)
285_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value);
System\Xml\XPath\XPathNavigator.cs (2)
1888mngr.AddNamespace(pair.Key, pair.Value); 2010mgr.AddNamespace(editor.LocalName, editor.Value);
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (2)
954_nsmgr.AddNamespace(string.Empty, string.Empty); 1104_nsmgr.AddNamespace(prefix, ns);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
970_nsmgr!.AddNamespace(prefix, ns);
System.Private.Xml.Linq (2)
System\Xml\Schema\XNodeValidator.cs (2)
190namespaceManager.AddNamespace(localName, a.Value); 215namespaceManager.AddNamespace(localName, a.Value);
System.Security.Cryptography.Xml (26)
System\Security\Cryptography\Xml\CipherData.cs (1)
104nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\CipherReference.cs (1)
81nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
160xmlNamespaceManager.AddNamespace(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedData.cs (2)
18nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl); 19nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
57nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl); 58nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
120nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedXml.cs (2)
327nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl); 650nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
87nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
279nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Reference.cs (1)
220nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
115xmlNamespaceManager.AddNamespace(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Signature.cs (1)
149nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\SignedInfo.cs (1)
215nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\TransformChain.cs (1)
177nsm.AddNamespace("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
155_nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl); 166_nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (3)
89_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl); 101_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl); 111_nsm.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
70_nsm.AddNamespace(prefix, namespaceURI);
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (3)
138_namespaceManager.AddNamespace("dsig", SignedXml.XmlDsigNamespaceUrl); 139_namespaceManager.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl); 140_namespaceManager.AddNamespace("r", Consts.NamespaceUriCore);
System.Windows.Forms.Analyzers (3)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (3)
57nsMgr.AddNamespace("v1", "urn:schemas-microsoft-com:asm.v1"); 58nsMgr.AddNamespace("v3", "urn:schemas-microsoft-com:asm.v3"); 59nsMgr.AddNamespace("v3ws", "http://schemas.microsoft.com/SMI/2005/WindowsSettings");