Base:
property
Attributes
System.Xml.XmlNode.Attributes
1 override of Attributes
System.Data.Common (1)
System\Xml\XmlBoundElement.cs (1)
34public override XmlAttributeCollection Attributes
215 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)
668ErrorUtilities.VerifyThrowInternalNull(projectConfiguration.Attributes, nameof(projectConfiguration.Attributes)); 670var buildProjectInSolution = projectConfiguration.Attributes![SolutionConfiguration.BuildProjectInSolutionAttribute]; 679XmlAttribute? 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)
548return 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) 656foreach (XmlAttributeWithLocation attribute in element.Attributes) 737foreach (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.Conversion.Core (10)
ProjectFileConverter.cs (10)
1599foreach (XmlAttribute xmlAttribute in xmlElement.Attributes) 2766foreach (XmlAttribute referenceAttribute in referenceElement.Attributes) 3224foreach (XmlAttributeWithLocation importAttribute in importElement.Attributes) 3477foreach (XmlAttribute fileAttribute in fileElement.Attributes) 3697foreach (XmlAttribute folderAttribute in folderElement.Attributes) 3812foreach (XmlAttributeWithLocation serviceAttribute in serviceElement.Attributes) 3951(userPropertiesElement.Attributes[VSProjectAttributes.officeDocumentPath] != null) || 3952(userPropertiesElement.Attributes[VSProjectAttributes.officeDocumentType] != null) || 3953(userPropertiesElement.Attributes[VSProjectAttributes.officeProject] != null) 3983XmlAttribute officeDocumentPathAttribute = userPropertiesElement.Attributes[VSProjectAttributes.officeDocumentPath];
Microsoft.Build.Engine (38)
Engine\BuildTask.cs (3)
99foreach (XmlAttribute taskAttribute in taskElement.Attributes) 279this.continueOnErrorAttribute = this.taskElement.Attributes[XMakeAttributes.continueOnError]; 426foreach (XmlAttribute attrib in this.taskElement.Attributes)
Engine\Import.cs (2)
185conditionAttribute = ImportElement.Attributes[XMakeAttributes.condition]; 229foreach (XmlAttribute importAttribute in importElement.Attributes)
Engine\Project.cs (1)
3755foreach (XmlAttribute projectAttribute in projectElement.Attributes)
Engine\Target.cs (1)
169foreach (XmlAttribute targetAttribute in targetElement.Attributes)
Engine\TargetDependencyAnalyzer.cs (2)
55this.targetInputsAttribute = targetToAnalyze.TargetElement.Attributes[XMakeAttributes.inputs]; 56this.targetOutputsAttribute = targetToAnalyze.TargetElement.Attributes[XMakeAttributes.outputs];
Engine\TargetExecutionWrapper.cs (5)
367foreach (XmlAttribute onErrorAttribute in childElement.Attributes) 372condition = childElement.Attributes[XMakeAttributes.condition]; 375executeTargets = childElement.Attributes[XMakeAttributes.executeTargets]; 944XmlAttribute targetOutputsAttribute = targetElement.Attributes[XMakeAttributes.outputs]; 951targetOutputsAttribute = targetElement.Attributes[XMakeAttributes.returns];
Engine\TaskEngine.cs (6)
85this.conditionAttribute = taskNode.Attributes[XMakeAttributes.condition]; 120List<string> taskParameters = new List<string>(taskNode.Attributes.Count); 122foreach (XmlAttribute taskParameter in taskNode.Attributes) 457XmlAttribute continueOnErrorAttribute = taskNode.Attributes[XMakeAttributes.continueOnError]; 622foreach (XmlAttribute taskAttribute in taskNode.Attributes) 1116foreach (XmlAttribute taskNodeAttribute in taskNode.Attributes)
Engine\TaskOutput.cs (1)
43foreach (XmlAttribute outputAttribute in node.Attributes)
Engine\UsingTask.cs (1)
254foreach (XmlAttribute usingTaskAttribute in usingTaskNode.Attributes)
Engine\XmlSearcher.cs (1)
200foreach (XmlAttribute xmlAttribute in ((XmlElement)elementToFind).Attributes)
Properties\BuildProperty.cs (1)
241foreach (XmlAttribute propertyAttribute in propertyElement.Attributes)
Properties\BuildPropertyGroup.cs (2)
226this.conditionAttribute = this.propertyGroupElement.Attributes[XMakeAttributes.condition]; 274foreach (XmlAttribute propertyGroupAttribute in this.propertyGroupElement.Attributes)
Shared\XmlUtilities.cs (1)
37foreach (XmlAttribute oldAttribute in oldElement.Attributes)
Tasks\IntrinsicTask.cs (2)
31this.conditionAttribute = taskNodeXmlElement.Attributes[XMakeAttributes.condition]; 303XmlAttribute conditionAttribute = metadataElement.Attributes[XMakeAttributes.condition];
Xml\BuildItemGroupChildXml.cs (6)
54foreach (XmlAttribute attribute in element.Attributes) 175includeAttribute = element.Attributes[XMakeAttributes.include]; 176excludeAttribute = element.Attributes[XMakeAttributes.exclude]; 177conditionAttribute = element.Attributes[XMakeAttributes.condition]; 178removeAttribute = element.Attributes[XMakeAttributes.remove]; 192includeAttribute = element.Attributes[XMakeAttributes.include];
Xml\ProjectXmlUtilities.cs (3)
117foreach (XmlAttribute attribute in element.Attributes) 149foreach (XmlAttribute attribute in element.Attributes) 197XmlAttribute attribute = element.Attributes[name];
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)
701foreach (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)
494if (content.Attributes[BackgroundAttributeName] != null) 495backgroundColor = GetColor(content.Attributes[BackgroundAttributeName].Value); 496if (content.Attributes[ActiveBackgroundAttributeName] != null) 497activeBackgroundColor = GetColor(content.Attributes[ActiveBackgroundAttributeName].Value);
ReachFramework (3)
PrintConfig\PrintSchemaShim.cs (1)
138parameterInitElem.Attributes.Append(nameAttr);
PrintConfig\PrtTicket_Editor.cs (2)
159foreach (XmlAttribute attr in root.Attributes) 220if (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)
451foreach (XmlAttribute attr in rowElement.Attributes) 714foreach (XmlAttribute attr in _topMostNode.Attributes)
System\Data\XMLSchema.cs (1)
501SetExtProperties(relation, node.Attributes);
System\Xml\XmlBoundElement.cs (1)
41return base.Attributes;
System\Xml\XmlDataDocument.cs (1)
1508attr.OwnerElement!.Attributes.Remove(attr);
System\Xml\XPathNodePointer.cs (1)
663XmlAttributeCollection 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)
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];
System.Web.Services.Description (2)
System\Web\Services\Description\ServiceDescription.cs (2)
1234XmlAttribute requiredAttr = element.Attributes["required", ServiceDescription.Namespace]; 1237requiredAttr = element.Attributes["required"];