Base:
property
Attributes
System.Xml.XmlNode.Attributes
1 override of Attributes
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
35public override XmlAttributeCollection Attributes
169 references to Attributes
ILLink.Tasks (9)
CreateRuntimeRootDescriptorFile.cs (9)
360featureAssemblyNode.Attributes.Append(featureAssemblyFullName); 364featureAssemblyNode.Attributes.Append(featureName); 368featureAssemblyNode.Attributes.Append(featureValue); 372featureAssemblyNode.Attributes.Append(featureDefault); 396typeNode.Attributes.Append(typeFullName); 407typeNode.Attributes.Append(preserve); 413typeNode.Attributes.Append(preserve); 423fieldNode.Attributes.Append(fieldName); 435methodNode.Attributes.Append(methodName);
Microsoft.Build (22)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
768ErrorUtilities.VerifyThrowInternalNull(projectConfiguration.Attributes, nameof(projectConfiguration.Attributes)); 770var buildProjectInSolution = projectConfiguration.Attributes![SolutionConfiguration.BuildProjectInSolutionAttribute]; 779XmlAttribute? projectPathAttribute = projectConfiguration.Attributes![SolutionConfiguration.AbsolutePathAttribute];
Construction\ProjectElement.cs (1)
398foreach (XmlAttribute attribute in element.XmlElement.Attributes)
Construction\ProjectTaskElement.cs (2)
374foreach (XmlAttribute attribute in XmlElement.Attributes) 446foreach (XmlAttributeWithLocation attribute in XmlElement.Attributes)
Construction\Solution\ProjectInSolution.cs (1)
580return mainProjectElement.Attributes.OfType<XmlAttribute>().Any(a =>
Evaluation\ProjectParser.cs (9)
290XmlAttributeWithLocation errorAttribute = remove.Length > 0 ? (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.remove] : (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.update]; 298ProjectXmlUtilities.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]); 301ProjectErrorUtilities.VerifyThrowInvalidProject(include.Length > 0 || element.Attributes[XMakeAttributes.include] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.include, itemType); 304ProjectErrorUtilities.VerifyThrowInvalidProject(remove.Length > 0 || element.Attributes[XMakeAttributes.remove] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.remove, itemType); 307ProjectErrorUtilities.VerifyThrowInvalidProject(update.Length > 0 || element.Attributes[XMakeAttributes.update] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.update, itemType); 314foreach (XmlAttributeWithLocation attribute in element.Attributes) 653foreach (XmlAttributeWithLocation attribute in element.Attributes) 734foreach (XmlAttributeWithLocation attribute in element.Attributes)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
148foreach (XmlAttribute attribute in xml.XmlElement.Attributes)
Xml\ProjectXmlUtilities.cs (3)
152foreach (XmlAttributeWithLocation attribute in element.Attributes) 184foreach (XmlAttributeWithLocation attribute in element.Attributes) 225XmlAttributeWithLocation attribute = (XmlAttributeWithLocation)element.Attributes[name];
XmlUtilities.cs (1)
39foreach (XmlAttribute oldAttribute in oldElement.Attributes)
Microsoft.Build.Tasks.Core (30)
BootstrapperUtil\BootstrapperBuilder.cs (4)
988foreach (XmlAttribute attribute in langElement.Attributes) 990mergeElement.Attributes.Append((XmlAttribute)(mergeElement.OwnerDocument.ImportNode(attribute, false))); 993foreach (XmlAttribute attribute in baseElement.Attributes) 1016var cultureAttribute = (XmlAttribute)mergeElement.Attributes.GetNamedItem("Culture");
ManifestUtil\AssemblyIdentity.cs (6)
249XmlNode node = element.Attributes.GetNamedItem("name"); 251node = element.Attributes.GetNamedItem("version"); 253node = element.Attributes.GetNamedItem("publicKeyToken"); 255node = element.Attributes.GetNamedItem("language"); 257node = element.Attributes.GetNamedItem("processorArchitecture"); 259node = element.Attributes.GetNamedItem("type");
ManifestUtil\Manifest.cs (1)
425XmlAttribute sizeAttribute = ((XmlAttribute)codeBaseNode).OwnerElement.Attributes[XmlUtil.TrimPrefix(XPaths.fileSizeAttribute)];
ManifestUtil\mansign2.cs (1)
645foreach (XmlAttribute attribute in principal.Attributes)
ManifestUtil\TrustInfo.cs (16)
40XmlAttribute sameSiteAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute)); 44permissionSetElement.Attributes.Append(sameSiteAttribute); 70var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 76permissionSetElement.Attributes.Append(unrestrictedAttribute); 84permissionSetElement.Attributes.RemoveNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 92var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 96permissionSetElement.Attributes.Append(unrestrictedAttribute); 107var idAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.idAttribute)); 111permissionSetElement.Attributes.Append(idAttribute); 133XmlAttribute idrefAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.permissionSetReferenceAttribute)); 137defaultAssemblyRequestElement.Attributes.Append(idrefAttribute); 301requestedExecutionLevelElement.Attributes.Append(levelAttribute); 307requestedExecutionLevelElement.Attributes.Append(uiAccessAttribute); 339permissionSetElement.Attributes.Append(unrestrictedAttribute); 497XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 509XmlAttribute sameSiteAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute));
ManifestUtil\XmlUtil.cs (2)
40foreach (XmlAttribute attribute in element.Attributes) 44newElement.Attributes.Append(newAttribute);
Microsoft.Build.Utilities.Core (1)
SDKManifest.cs (1)
340ReadFileListAttributes(rootElement.Attributes);
Microsoft.NET.Sdk.Publish.Tasks (4)
Tasks\MsDeploy\ImportParameterFile.cs (4)
68Xml.XmlAttribute? nameAttribute = element.Attributes.GetNamedItem("name") as Xml.XmlAttribute; 72foreach (Xml.XmlNode attribute in element.Attributes) 126foreach (Xml.XmlNode attribute in element.Attributes) 140foreach (Xml.XmlNode attribute in element.Attributes)
PresentationFramework (4)
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
485if (content.Attributes[BackgroundAttributeName] != null) 486backgroundColor = GetColor(content.Attributes[BackgroundAttributeName].Value); 487if (content.Attributes[ActiveBackgroundAttributeName] != null) 488activeBackgroundColor = GetColor(content.Attributes[ActiveBackgroundAttributeName].Value);
ReachFramework (3)
PrintConfig\PrintSchemaShim.cs (1)
133parameterInitElem.Attributes.Append(nameAttr);
PrintConfig\PrtTicket_Editor.cs (2)
151foreach (XmlAttribute attr in root.Attributes) 212if (root.Attributes["xmlns:" + prefix] == null)
System.Data.Common (15)
System\Data\XDRSchema.cs (9)
359if (node.Attributes.Count > 0) 456SetProperties(column, node.Attributes); // xmlschema.SetProperties will skipp setting expressions 463if (node.Attributes != null) 465for (int i = 0; i < node.Attributes.Count; i++) 467if (node.Attributes[i].NamespaceURI == Keywords.MSDNS) 469if (node.Attributes[i].LocalName == "Expression") 471column.Expression = node.Attributes[i].Value; 553XmlAttributeCollection attrs = node.Attributes; 646XmlAttributeCollection attrs = node.Attributes;
System\Data\XmlDataLoader.cs (2)
453foreach (XmlAttribute attr in rowElement.Attributes) 720foreach (XmlAttribute attr in _topMostNode.Attributes)
System\Data\XMLSchema.cs (1)
498SetExtProperties(relation, node.Attributes);
System\Xml\XmlBoundElement.cs (1)
40return base.Attributes;
System\Xml\XmlDataDocument.cs (1)
1490attr.OwnerElement!.Attributes.Remove(attr);
System\Xml\XPathNodePointer.cs (1)
665XmlAttributeCollection attrs = ((XmlAttribute)_node).OwnerElement!.Attributes;
System.Private.DataContractSerialization (16)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
621wrapperElement.Attributes.Append(xmlAttr);
System\Runtime\Serialization\SchemaExporter.cs (7)
224defaultValueElement.Attributes.Append(emitDefaultValueAttribute); 239actualTypeElement.Attributes.Append(nameAttribute); 243actualTypeElement.Attributes.Append(nsAttribute); 299typeElement.Attributes.Append(nameAttribute); 303typeElement.Attributes.Append(nsAttribute); 319argumentElement.Attributes.Append(nestedLevelAttribute); 329typeElement.Attributes.Append(typeNestedLevelsAttribute);
System\Runtime\Serialization\SchemaImporter.cs (7)
1025XmlNode? emitDefaultValueAttribute = defaultValueElement.Attributes.GetNamedItem(Globals.EmitDefaultValueAttribute); 1037XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNameAttribute); 1040XmlNode? nsAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNamespaceAttribute); 1284string? name = typeElement.Attributes.GetNamedItem(Globals.GenericNameAttribute)?.Value; 1287string? ns = typeElement.Attributes.GetNamedItem(Globals.GenericNamespaceAttribute)?.Value; 1302XmlNode? nestedLevelAttribute = argumentElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute); 1317XmlNode? typeNestedLevelsAttribute = typeElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1056wrapperElement.Attributes.Append((XmlAttribute)xmlAttributes[i]);
System.Private.Xml (50)
System\Xml\Dom\DocumentSchemaValidator.cs (4)
183XmlAttributeCollection attrs = elem.Attributes; 326XmlAttributeCollection attributes = elementNode.Attributes; 387XmlAttributeCollection attributes = elementNode.Attributes; 675XmlAttributeCollection attributes = elementNode.Attributes;
System\Xml\Dom\DocumentXmlWriter.cs (2)
434XmlAttributeCollection attrs = elem.Attributes; 520elem.Attributes.Append(attr);
System\Xml\Dom\DocumentXPathNavigator.cs (12)
270XmlAttributeCollection attributes = element.Attributes; 294XmlAttributeCollection attributes = element.Attributes; 322XmlAttributeCollection attributes = element.Attributes; 476attributes = element.Attributes; 486attributes = element.Attributes; 505attributes = element.Attributes; 553attributes = element.Attributes; 667attributes = element.Attributes; 1320XmlAttributeCollection attributes = element.Attributes; 1816XmlAttributeCollection attributes = elements[i].Attributes; 1841ResetAttributePosition(attribute, element.Attributes, out _attributeIndex); 1872attributes = element.Attributes;
System\Xml\Dom\XmlAttribute.cs (2)
149return ownerElement.Attributes.PrepareParentInElementIdAttrMap(Prefix, LocalName); 159ownerElement?.Attributes.ResetParentInElementIdAttrMap(oldInnerText, InnerText);
System\Xml\Dom\XmlAttributeCollection.cs (1)
331attr.OwnerElement!.Attributes.Remove(attr);
System\Xml\Dom\XmlElement.cs (12)
65foreach (XmlAttribute attr in Attributes) 73element.Attributes.InternalAppendAttribute(newAttr); 286Attributes.InternalAppendAttribute(attr); 298Attributes.RemoveNamedItem(name); 305return Attributes[name]; 315return (XmlAttribute)Attributes.SetNamedItem(newAttr); 322return (XmlAttribute?)Attributes.Remove(oldAttr); 357Attributes.InternalAppendAttribute(attr); 377return Attributes[localName, namespaceURI]; 388Attributes.InternalAppendAttribute(attr); 400Attributes.Remove(attr); 514XmlAttributeCollection attrs = Attributes;
System\Xml\Dom\XmlLoader.cs (6)
116XmlAttributeCollection attributes = element.Attributes; 470XmlAttributeCollection attributes = element.Attributes; 697foreach (XmlAttribute attr in element.Attributes) 804XmlAttributeCollection attrs = elem.Attributes; 817elem.Attributes.RemoveNodeAt(i); 834elem.Attributes.RemoveNodeAt(i);
System\Xml\Dom\XmlNode.cs (2)
1096XmlAttributeCollection attrs = elem.Attributes; 1181XmlAttributeCollection attrs = elem.Attributes;
System\Xml\Dom\XmlNodeReader.cs (8)
334return ((XmlElement)_curNode).Attributes.Count; 532return ((XmlElement)_curNode).Attributes[attributeIndex].Value; 535return ((XmlElement)_elemNode!).Attributes[attributeIndex].Value; 649_attrIndex = elem.Attributes.FindNodeOffsetNS(attr); 695attr = ((XmlElement)_curNode).Attributes[attributeIndex]; 705attr = ((XmlElement)_elemNode!).Attributes[attributeIndex]; 948XmlAttributeCollection attrs = elem.Attributes; 1000XmlAttributeCollection attrs = elem.Attributes;
System\Xml\Schema\Parser.cs (1)
347XmlAttributeCollection attributes = element.Attributes;
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (2)
369XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(ImportGlobals.ActualTypeNameAttribute); 372XmlNode? nsAttribute = actualTypeElement.Attributes.GetNamedItem(ImportGlobals.ActualTypeNamespaceAttribute);
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (2)
33XmlAttributeCollection? attrList = Attributes; 105XmlAttributeCollection attrList = Attributes;
System\Security\Cryptography\Xml\SignedXml.cs (1)
581cloneElem.Attributes.RemoveAll();
System\Security\Cryptography\Xml\Utils.cs (2)
79foreach (XmlAttribute attr in element.Attributes) 519XmlAttributeCollection attribs = ancestorElement.Attributes;
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
59foreach (XmlAttribute attrib in elem.Attributes)
System.ServiceModel.Primitives (7)
System\ServiceModel\Security\WSTrust.cs (7)
232for (int i = 0; i < rstXml.Attributes.Count; ++i) 234XmlAttribute attr = rstXml.Attributes[i]; 333for (int i = 0; i < rstrXml.Attributes.Count; ++i) 335XmlAttribute attr = rstrXml.Attributes[i]; 764if (elem.Attributes != null) 766for (int i = 0; i < elem.Attributes.Count; ++i) 768XmlAttribute attr = elem.Attributes[i];