Base:
property
Attributes
System.Xml.XmlNode.Attributes
1 override of Attributes
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
35public override XmlAttributeCollection Attributes
158 references to Attributes
ILLink.Tasks (9)
CreateRuntimeRootDescriptorFile.cs (9)
320 featureAssemblyNode.Attributes.Append (featureAssemblyFullName); 324 featureAssemblyNode.Attributes.Append (featureName); 328 featureAssemblyNode.Attributes.Append (featureValue); 332 featureAssemblyNode.Attributes.Append (featureDefault); 354 typeNode.Attributes.Append (typeFullName); 363 typeNode.Attributes.Append (preserve); 367 typeNode.Attributes.Append (preserve); 375 fieldNode.Attributes.Append (fieldName); 385 methodNode.Attributes.Append (methodName);
Microsoft.Build (22)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
672ErrorUtilities.VerifyThrowInternalNull(projectConfiguration.Attributes, nameof(projectConfiguration.Attributes)); 674var buildProjectInSolution = projectConfiguration.Attributes![SolutionConfiguration.BuildProjectInSolutionAttribute]; 683XmlAttribute? 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)
556return 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)
153foreach (XmlAttributeWithLocation attribute in element.Attributes) 185foreach (XmlAttributeWithLocation attribute in element.Attributes) 226XmlAttributeWithLocation 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)
238XmlNode node = element.Attributes.GetNamedItem("name"); 240node = element.Attributes.GetNamedItem("version"); 242node = element.Attributes.GetNamedItem("publicKeyToken"); 244node = element.Attributes.GetNamedItem("language"); 246node = element.Attributes.GetNamedItem("processorArchitecture"); 248node = element.Attributes.GetNamedItem("type");
ManifestUtil\Manifest.cs (1)
426XmlAttribute sizeAttribute = ((XmlAttribute)codeBaseNode).OwnerElement.Attributes[XmlUtil.TrimPrefix(XPaths.fileSizeAttribute)];
ManifestUtil\mansign2.cs (1)
703foreach (XmlAttribute attribute in principal.Attributes)
ManifestUtil\TrustInfo.cs (16)
41XmlAttribute sameSiteAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute)); 45permissionSetElement.Attributes.Append(sameSiteAttribute); 71var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 77permissionSetElement.Attributes.Append(unrestrictedAttribute); 85permissionSetElement.Attributes.RemoveNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 93var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 97permissionSetElement.Attributes.Append(unrestrictedAttribute); 108var idAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.idAttribute)); 112permissionSetElement.Attributes.Append(idAttribute); 134XmlAttribute idrefAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.permissionSetReferenceAttribute)); 138defaultAssemblyRequestElement.Attributes.Append(idrefAttribute); 302requestedExecutionLevelElement.Attributes.Append(levelAttribute); 308requestedExecutionLevelElement.Attributes.Append(uiAccessAttribute); 340permissionSetElement.Attributes.Append(unrestrictedAttribute); 498XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.unrestrictedAttribute)); 510XmlAttribute sameSiteAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(XPaths.sameSiteAttribute));
ManifestUtil\XmlUtil.cs (2)
41foreach (XmlAttribute attribute in element.Attributes) 45newElement.Attributes.Append(newAttribute);
Microsoft.Build.Utilities.Core (1)
SDKManifest.cs (1)
340ReadFileListAttributes(rootElement.Attributes);
PresentationFramework (4)
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
486if (content.Attributes[BackgroundAttributeName] != null) 487backgroundColor = GetColor(content.Attributes[BackgroundAttributeName].Value); 488if (content.Attributes[ActiveBackgroundAttributeName] != null) 489activeBackgroundColor = GetColor(content.Attributes[ActiveBackgroundAttributeName].Value);
ReachFramework (3)
PrintConfig\PrintSchemaShim.cs (1)
134parameterInitElem.Attributes.Append(nameAttr);
PrintConfig\PrtTicket_Editor.cs (2)
152foreach (XmlAttribute attr in root.Attributes) 213if (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)
501SetExtProperties(relation, node.Attributes);
System\Xml\XmlBoundElement.cs (1)
40return base.Attributes;
System\Xml\XmlDataDocument.cs (1)
1491attr.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)
1026XmlNode? emitDefaultValueAttribute = defaultValueElement.Attributes.GetNamedItem(Globals.EmitDefaultValueAttribute); 1038XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNameAttribute); 1041XmlNode? nsAttribute = actualTypeElement.Attributes.GetNamedItem(Globals.ActualTypeNamespaceAttribute); 1285string? name = typeElement.Attributes.GetNamedItem(Globals.GenericNameAttribute)?.Value; 1288string? ns = typeElement.Attributes.GetNamedItem(Globals.GenericNamespaceAttribute)?.Value; 1303XmlNode? nestedLevelAttribute = argumentElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute); 1318XmlNode? typeNestedLevelsAttribute = typeElement.Attributes.GetNamedItem(Globals.GenericParameterNestedLevelAttribute);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1058wrapperElement.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)
115XmlAttributeCollection attributes = element.Attributes; 472XmlAttributeCollection attributes = element.Attributes; 699foreach (XmlAttribute attr in element.Attributes) 806XmlAttributeCollection attrs = elem.Attributes; 819elem.Attributes.RemoveNodeAt(i); 836elem.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)
370XmlNode? nameAttribute = actualTypeElement.Attributes.GetNamedItem(ImportGlobals.ActualTypeNameAttribute); 373XmlNode? 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)
593cloneElem.Attributes.RemoveAll();
System\Security\Cryptography\Xml\Utils.cs (2)
85foreach (XmlAttribute attr in element.Attributes) 531XmlAttributeCollection attribs = ancestorElement.Attributes;
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
59foreach (XmlAttribute attrib in elem.Attributes)