1 override of AddNamespace
System.Private.Xml (1)
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
155
public override void
AddNamespace
(string prefix, string uri) { }
100 references to AddNamespace
BuildBoss (1)
ProjectUtil.cs (1)
42
Manager.
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)
387
nsm.
AddNamespace
("asm", AssemblyNamespaceUri);
403
nsm.
AddNamespace
("asm", AssemblyNamespaceUri);
404
nsm.
AddNamespace
("asm2", AssemblyV2NamespaceUri);
405
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
449
nsm.
AddNamespace
("asm", AssemblyNamespaceUri);
450
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
498
nsm.
AddNamespace
("asm", AssemblyNamespaceUri);
699
nsm.
AddNamespace
("r", LicenseNamespaceUri);
700
nsm.
AddNamespace
("as", AuthenticodeNamespaceUri);
784
nsm.
AddNamespace
("r", LicenseNamespaceUri);
899
nsm.
AddNamespace
("r", LicenseNamespaceUri);
900
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
901
nsm.
AddNamespace
("as", AuthenticodeNamespaceUri);
971
nsm.
AddNamespace
("asm", AssemblyNamespaceUri);
ManifestUtil\XmlNamespaces.cs (6)
22
nsmgr.
AddNamespace
("asmv1", asmv1);
23
nsmgr.
AddNamespace
("asmv2", asmv2);
24
nsmgr.
AddNamespace
("asmv3", asmv3);
25
nsmgr.
AddNamespace
("dsig", dsig);
26
nsmgr.
AddNamespace
("xrml", xrml);
27
nsmgr.
AddNamespace
("xsi", xsi);
XmlPeek.cs (1)
208
namespaceManager.
AddNamespace
(prefix.Value, uri.Value);
XmlPoke.cs (1)
195
namespaceManager.
AddNamespace
(prefix.Value, uri.Value);
Microsoft.Build.Tasks.UnitTests (1)
XmlPoke_Tests.cs (1)
55
ns.
AddNamespace
("s", XmlNamespaceUsedByTests);
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixCommandPackageDropBase.cs (1)
139
nsmgr.
AddNamespace
("wix", "http://schemas.microsoft.com/wix/2006/objects");
Microsoft.DotNet.SignCheckLibrary (1)
Verification\VsixVerifier.cs (1)
50
namespaceManager.
AddNamespace
("ds", "http://schemas.openxmlformats.org/package/2006/digital-signature");
Microsoft.Extensions.Configuration.Xml (1)
XmlDocumentDecryptor.cs (1)
50
namespaceManager.
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)
451
xmlnsMgr.
AddNamespace
(key, parserContext._xmlnsDictionary[key]);
PresentationFramework (4)
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
741
_namespaceManager.
AddNamespace
(AnnotationXmlConstants.Prefixes.CoreSchemaPrefix, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
742
_namespaceManager.
AddNamespace
(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
93
this.
AddNamespace
(mapping.Prefix, mapping.Uri.OriginalString);
System\Windows\Markup\ParserContext.cs (1)
451
xmlnsMgr.
AddNamespace
(key, parserContext._xmlnsDictionary[key]);
ReachFramework (4)
PrintConfig\PrtTicket_Public.cs (4)
626
_nsMgr.
AddNamespace
(PrintSchemaPrefixes.Framework, PrintSchemaNamespaces.Framework);
627
_nsMgr.
AddNamespace
(PrintSchemaPrefixes.StandardKeywordSet, PrintSchemaNamespaces.StandardKeywordSet);
628
_nsMgr.
AddNamespace
(PrintSchemaPrefixes.xsi, PrintSchemaNamespaces.xsi);
629
_nsMgr.
AddNamespace
(PrintSchemaPrefixes.xsd, PrintSchemaNamespaces.xsd);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
150
Namespaces.
AddNamespace
(prefix, ns);
System.Private.Xml (28)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3204
xnm.
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)
1823
namespaceManager.
AddNamespace
(prefix, attribute.Value);
System\Xml\Dom\XmlLoader.cs (4)
705
mgr.
AddNamespace
(attr.LocalName, attr.Value);
710
mgr.
AddNamespace
(string.Empty, attr.Value);
827
mgr.
AddNamespace
(attr.LocalName, attr.Value);
844
mgr.
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)
1888
mngr.
AddNamespace
(pair.Key, pair.Value);
2010
mgr.
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)
190
namespaceManager.
AddNamespace
(localName, a.Value);
215
namespaceManager.
AddNamespace
(localName, a.Value);
System.Security.Cryptography.Xml (26)
System\Security\Cryptography\Xml\CipherData.cs (1)
107
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\CipherReference.cs (1)
84
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
169
xmlNamespaceManager.
AddNamespace
(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedData.cs (2)
21
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
22
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (2)
60
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
61
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
123
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedXml.cs (2)
336
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
680
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
90
nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
288
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Reference.cs (1)
223
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
124
xmlNamespaceManager.
AddNamespace
(xmlDsigNamespacePrefix, SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\Signature.cs (1)
152
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\SignedInfo.cs (1)
218
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\TransformChain.cs (1)
180
nsm.
AddNamespace
("ds", SignedXml.XmlDsigNamespaceUrl);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
158
_nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
172
_nsm.
AddNamespace
("enc", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (3)
89
_nsm.
AddNamespace
("dsig", SignedXml.XmlDsigNamespaceUrl);
104
_nsm.
AddNamespace
("dsig", SignedXml.XmlDsigNamespaceUrl);
117
_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)
57
nsMgr.
AddNamespace
("v1", "urn:schemas-microsoft-com:asm.v1");
58
nsMgr.
AddNamespace
("v3", "urn:schemas-microsoft-com:asm.v3");
59
nsMgr.
AddNamespace
("v3ws", "http://schemas.microsoft.com/SMI/2005/WindowsSettings");