77 references to GetAttribute
Microsoft.Build (25)
Construction\ProjectRootElement.cs (3)
1895sdkNode.XmlElement.GetAttribute("Name"), 1896sdkNode.XmlElement.GetAttribute("Version"), 1897sdkNode.XmlElement.GetAttribute("MinimumVersion"));
Construction\Solution\ProjectInSolution.cs (1)
346if (emptyNamespace && !projectElementInvalid && mainProjectElement.GetAttribute("ToolsVersion") != "2.0")
Evaluation\Preprocessor.cs (9)
241string outerInitialTargets = destinationDocument.DocumentElement.GetAttribute(XMakeAttributes.initialTargets).Trim(); 242string innerInitialTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.initialTargets).Trim(); 255string outerDefaultTargets = destinationDocument.DocumentElement.GetAttribute(XMakeAttributes.defaultTargets).Trim(); 259string innerDefaultTargets = ((XmlElement)child).GetAttribute(XMakeAttributes.defaultTargets).Trim(); 278string importCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.condition); 280string importProject = ((XmlElement)child).GetAttribute(XMakeAttributes.project).Replace("--", "__"); 281string importSdk = ((XmlElement)child).GetAttribute(XMakeAttributes.sdk); 285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 336string importGroupCondition = ((XmlElement)child).GetAttribute(XMakeAttributes.condition);
Evaluation\ProjectParser.cs (8)
264string include = element.GetAttribute(XMakeAttributes.include); 265string exclude = element.GetAttribute(XMakeAttributes.exclude); 266string remove = element.GetAttribute(XMakeAttributes.remove); 267string update = element.GetAttribute(XMakeAttributes.update); 511ProjectErrorUtilities.VerifyThrowInvalidProject(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty"); 513string assemblyName = element.GetAttribute(XMakeAttributes.assemblyName); 514string assemblyFile = element.GetAttribute(XMakeAttributes.assemblyFile); 897if (string.IsNullOrEmpty(element.GetAttribute(XMakeAttributes.sdkName)))
SolutionConfiguration.cs (3)
52string projectGuid = xmlElement.GetAttribute(ProjectAttribute); 53string projectAbsolutePath = xmlElement.GetAttribute(AbsolutePathAttribute); 86string dependencyGuid = dependencyElement.GetAttribute("Project");
Xml\ProjectXmlUtilities.cs (1)
177ProjectErrorUtilities.VerifyThrowInvalidProject(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);
Microsoft.Build.Tasks.Core (7)
AddToWin32Manifest.cs (1)
215if (string.IsNullOrEmpty(winSettingsNode.GetAttribute(XMakeAttributes.xmlns)))
AssignProjectConfiguration.cs (1)
337string buildProjectInSolution = projectConfigurationElement.GetAttribute(SolutionConfiguration.BuildProjectInSolutionAttribute);
ManifestUtil\TrustInfo.cs (2)
277executionLevelString = inputRequestedExecutionLevel.GetAttribute("level"); 284executionUIAccessString = inputRequestedExecutionLevel.GetAttribute("uiAccess");
SolutionConfiguration.cs (3)
52string projectGuid = xmlElement.GetAttribute(ProjectAttribute); 53string projectAbsolutePath = xmlElement.GetAttribute(AbsolutePathAttribute); 86string dependencyGuid = dependencyElement.GetAttribute("Project");
Microsoft.Build.Utilities.Core (7)
ApiContract.cs (2)
58contractElement.GetAttribute(Attributes.Name), 59contractElement.GetAttribute(Attributes.Version)));
PlatformManifest.cs (5)
124Name = rootElement.GetAttribute(Attributes.Name); 125FriendlyName = rootElement.GetAttribute(Attributes.FriendlyName); 126PlatformVersion = rootElement.GetAttribute(Attributes.Version); 146DependentPlatforms.Add(new DependentPlatform(childElement.GetAttribute(Attributes.Name), childElement.GetAttribute(Attributes.Version)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
PDB\CSharpPDBTestBase.cs (4)
58if (startRow.ToString() == item.GetAttribute("startLine") && 59startColumn.ToString() == item.GetAttribute("startColumn") && 60endRow.ToString() == item.GetAttribute("endLine") && 61endColumn.ToString() == item.GetAttribute("endColumn"))
PresentationFramework (6)
MS\Internal\Globalization\BamlTreeMap.cs (3)
597string locAttribute = element.GetAttribute(LocComments.LocLocalizabilityAttribute); 600locAttribute = element.GetAttribute(LocComments.LocCommentsAttribute); 656&& element.GetAttribute(LocComments.LocCommentIDAttribute) == uid)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
517tagUid = child.GetAttribute(XamlReaderHelper.DefinitionUid);
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (2)
169string languageString = currentNode.GetAttribute(_xmlLangAttribute); 224_unicodeString = _glyphsNode.GetAttribute(_unicodeStringAttribute);
System.Data.Common (21)
System\Data\XDRSchema.cs (14)
36_schemaName = schemaRoot.GetAttribute(Keywords.NAME); 83strType = node.GetAttribute(Keywords.TYPE); 102if (vn is XmlElement && ((XmlElement)vn).GetAttribute(Keywords.NAME) == strType) 135string value = node.GetAttribute(Keywords.CONTENT); 191string occurs = node.GetAttribute(Keywords.MINOCCURS); 199occurs = node.GetAttribute(Keywords.MAXOCCURS); 326instanceName = node.GetAttribute(Keywords.NAME); 334instanceName = node.GetAttribute(Keywords.TYPE); 361string strRef = node.GetAttribute(Keywords.REF); 397strType = node.GetAttribute(Keywords.TYPE); 448strDefault = node.GetAttribute(Keywords.DEFAULT); 478string targetNamespace = node.GetAttribute(Keywords.TARGETNAMESPACE); 496string occurs = elNode.GetAttribute(Keywords.MINOCCURS); 504occurs = elNode.GetAttribute(Keywords.MAXOCCURS);
System\Data\xmlsaver.cs (3)
1214if (n is XmlElement e && e.GetAttribute(Keywords.NAME) == name) 1570if (FindTypeNode(schNode, el.GetAttribute(Keywords.NAME)) == null) 1591if (child.GetAttribute(Keywords.NAME) == strType)
System\Data\XMLSchema.cs (1)
442strName = XmlConvert.DecodeName(node.GetAttribute(Keywords.NAME));
System\Xml\XmlDataDocument.cs (2)
2475if (value.Length == 0 && (((xsi_attrVal = rowElement.GetAttribute(XSI_NIL)) == "1") || xsi_attrVal == "true")) 2511if (value.Length == 0 && (((xsi_attrVal = e.GetAttribute(XSI_NIL)) == "1") || xsi_attrVal == "true"))
System\Xml\XPathNodePointer.cs (1)
420return curBoundElem.GetAttribute("xml:lang");
System.Private.Xml (2)
System\Xml\Dom\XmlNode.cs (2)
1353switch (elem.GetAttribute("xml:space").AsSpan().Trim(XmlConvert.WhitespaceChars)) 1384return elem.GetAttribute("xml:lang");
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\Utils.cs (2)
42if (element.HasAttribute(name) && element.GetAttribute(name) == value) return true; 67string? s = (element.HasAttribute(localName) ? element.GetAttribute(localName) : null);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (3)
43if (inputElement.GetAttribute("Id") == idValue || inputElement.GetAttribute("id") == idValue || 44inputElement.GetAttribute("ID") == idValue)