116 references to GetAttribute
Microsoft.Build (25)
Construction\ProjectRootElement.cs (3)
1913
sdkNode.XmlElement.
GetAttribute
("Name"),
1914
sdkNode.XmlElement.
GetAttribute
("Version"),
1915
sdkNode.XmlElement.
GetAttribute
("MinimumVersion"));
Construction\Solution\ProjectInSolution.cs (1)
346
if (emptyNamespace && !projectElementInvalid && mainProjectElement.
GetAttribute
("ToolsVersion") != "2.0")
Evaluation\Preprocessor.cs (9)
241
string outerInitialTargets = destinationDocument.DocumentElement.
GetAttribute
(XMakeAttributes.initialTargets).Trim();
242
string innerInitialTargets = ((XmlElement)child).
GetAttribute
(XMakeAttributes.initialTargets).Trim();
255
string outerDefaultTargets = destinationDocument.DocumentElement.
GetAttribute
(XMakeAttributes.defaultTargets).Trim();
259
string innerDefaultTargets = ((XmlElement)child).
GetAttribute
(XMakeAttributes.defaultTargets).Trim();
278
string importCondition = ((XmlElement)child).
GetAttribute
(XMakeAttributes.condition);
280
string importProject = ((XmlElement)child).
GetAttribute
(XMakeAttributes.project).Replace("--", "__");
281
string importSdk = ((XmlElement)child).
GetAttribute
(XMakeAttributes.sdk);
285
string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).
GetAttribute
(XMakeAttributes.sdk) : String.Empty;
336
string importGroupCondition = ((XmlElement)child).
GetAttribute
(XMakeAttributes.condition);
Evaluation\ProjectParser.cs (8)
264
string include = element.
GetAttribute
(XMakeAttributes.include);
265
string exclude = element.
GetAttribute
(XMakeAttributes.exclude);
266
string remove = element.
GetAttribute
(XMakeAttributes.remove);
267
string update = element.
GetAttribute
(XMakeAttributes.update);
511
ProjectErrorUtilities.VerifyThrowInvalidProject(element.
GetAttribute
(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
513
string assemblyName = element.
GetAttribute
(XMakeAttributes.assemblyName);
514
string assemblyFile = element.
GetAttribute
(XMakeAttributes.assemblyFile);
900
if (string.IsNullOrEmpty(element.
GetAttribute
(XMakeAttributes.sdkName)))
SolutionConfiguration.cs (3)
52
string projectGuid = xmlElement.
GetAttribute
(ProjectAttribute);
53
string projectAbsolutePath = xmlElement.
GetAttribute
(AbsolutePathAttribute);
86
string dependencyGuid = dependencyElement.
GetAttribute
("Project");
Xml\ProjectXmlUtilities.cs (1)
177
ProjectErrorUtilities.VerifyThrowInvalidProject(element.
GetAttribute
(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);
Microsoft.Build.Conversion.Core (31)
ProjectFileConverter.cs (31)
1633
string projectType = visualStudioProjectElement.
GetAttribute
(VSProjectAttributes.projectType);
1707
this.projectGuid = languageElement.
GetAttribute
(VSProjectAttributes.projectGuid);
1713
string projectType = languageElement.
GetAttribute
(VSProjectAttributes.projectType);
1752
string originalMyType = languageElement.
GetAttribute
(XMakeProjectStrings.myType);
2140
this.preBuildEvent = settingsElement.
GetAttribute
(VSProjectAttributes.preBuildEvent);
2142
this.postBuildEvent = settingsElement.
GetAttribute
(VSProjectAttributes.postBuildEvent);
2147
this.assemblyName = settingsElement.
GetAttribute
(VSProjectAttributes.assemblyName);
2150
this.outputType = settingsElement.
GetAttribute
(XMakeProjectStrings.outputType);
2262
string configName = configElement.
GetAttribute
(VSProjectAttributes.name);
2289
additionalOptionsValue = configElement.
GetAttribute
(VSProjectAttributes.additionalOptions);
2300
string outputPath = configElement.
GetAttribute
(VSProjectAttributes.outputPath);
2314
string selectedDevice = configElement.
GetAttribute
(VSProjectAttributes.selectedDevice);
2320
string deploymentPlatform = configElement.
GetAttribute
(VSProjectAttributes.deploymentPlatform);
2327
string incrementalBuild = configElement.
GetAttribute
(VSProjectAttributes.incrementalBuild);
2369
string debugType = configElement.
GetAttribute
(VSProjectAttributes.debugType);
2372
string debugSymbols = configElement.
GetAttribute
(XMakeProjectStrings.debugSymbols);
2471
platformForVSD = platformElement.
GetAttribute
(VSProjectAttributes.name);
2692
string platform = referenceElement.
GetAttribute
(VSProjectAttributes.platform);
2707
string referenceName = referenceElement.
GetAttribute
(VSProjectAttributes.name);
2744
string comReferenceGuid = referenceElement.
GetAttribute
(VSProjectAttributes.guid);
2748
string referencedProjectGuid = referenceElement.
GetAttribute
(VSProjectAttributes.project);
2922
string assemblyName = referenceElement.
GetAttribute
(VSProjectAttributes.assemblyName);
2942
string hintPath = referenceElement.
GetAttribute
(VSProjectAttributes.hintPath);
3201
string importNamespace = importElement.
GetAttribute
(VSProjectAttributes.importNamespace);
3388
string relPath = fileElement.
GetAttribute
(VSProjectAttributes.relPath);
3395
string linkPath = fileElement.
GetAttribute
(VSProjectAttributes.link);
3402
string buildAction = fileElement.
GetAttribute
(VSProjectAttributes.buildAction);
3577
string relPath = folderElement.
GetAttribute
(VSProjectAttributes.relPath);
3588
string webReferences = folderElement.
GetAttribute
(VSProjectAttributes.webReferences);
3594
string webReferenceUrl = folderElement.
GetAttribute
(VSProjectAttributes.webReferenceUrl);
3789
string id = serviceElement.
GetAttribute
(VSProjectAttributes.id);
Microsoft.Build.Engine (6)
Engine\BuildTask.cs (1)
476
return taskElement.
GetAttribute
(attributeName) ?? string.Empty;
Engine\Project.cs (2)
840
toolsVersionAttribute = ProjectElement.
GetAttribute
(XMakeAttributes.toolsVersion);
3910
this.nameOfFirstTarget = targetElement.
GetAttribute
(XMakeAttributes.name);
Solution\VCProjectParser.cs (3)
32
string referencedProjectGuid = referenceElement.
GetAttribute
("ReferencedProjectIdentifier");
63
(string.Equals(element.
GetAttribute
("Name"), configurationName, StringComparison.OrdinalIgnoreCase)))
66
string configurationType = configurationElement.
GetAttribute
("ConfigurationType");
Microsoft.Build.Tasks.Core (7)
AddToWin32Manifest.cs (1)
215
if (string.IsNullOrEmpty(winSettingsNode.
GetAttribute
(XMakeAttributes.xmlns)))
AssignProjectConfiguration.cs (1)
337
string buildProjectInSolution = projectConfigurationElement.
GetAttribute
(SolutionConfiguration.BuildProjectInSolutionAttribute);
ManifestUtil\TrustInfo.cs (2)
277
executionLevelString = inputRequestedExecutionLevel.
GetAttribute
("level");
284
executionUIAccessString = inputRequestedExecutionLevel.
GetAttribute
("uiAccess");
SolutionConfiguration.cs (3)
52
string projectGuid = xmlElement.
GetAttribute
(ProjectAttribute);
53
string projectAbsolutePath = xmlElement.
GetAttribute
(AbsolutePathAttribute);
86
string dependencyGuid = dependencyElement.
GetAttribute
("Project");
Microsoft.Build.Utilities.Core (7)
ApiContract.cs (2)
58
contractElement.
GetAttribute
(Attributes.Name),
59
contractElement.
GetAttribute
(Attributes.Version)));
PlatformManifest.cs (5)
124
Name = rootElement.
GetAttribute
(Attributes.Name);
125
FriendlyName = rootElement.
GetAttribute
(Attributes.FriendlyName);
126
PlatformVersion = rootElement.
GetAttribute
(Attributes.Version);
146
DependentPlatforms.Add(new DependentPlatform(childElement.
GetAttribute
(Attributes.Name), childElement.
GetAttribute
(Attributes.Version)));
PresentationFramework (6)
MS\Internal\Globalization\BamlTreeMap.cs (3)
602
string locAttribute = element.
GetAttribute
(LocComments.LocLocalizabilityAttribute);
605
locAttribute = element.
GetAttribute
(LocComments.LocCommentsAttribute);
661
&& element.
GetAttribute
(LocComments.LocCommentIDAttribute) == uid)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
525
tagUid = child.
GetAttribute
(XamlReaderHelper.DefinitionUid);
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (2)
171
string languageString = currentNode.
GetAttribute
(_xmlLangAttribute);
226
_unicodeString = _glyphsNode.
GetAttribute
(_unicodeStringAttribute);
System.Data.Common (21)
System\Data\XDRSchema.cs (14)
36
_schemaName = schemaRoot.
GetAttribute
(Keywords.NAME);
83
strType = node.
GetAttribute
(Keywords.TYPE);
102
if (vn is XmlElement && ((XmlElement)vn).
GetAttribute
(Keywords.NAME) == strType)
135
string value = node.
GetAttribute
(Keywords.CONTENT);
191
string occurs = node.
GetAttribute
(Keywords.MINOCCURS);
199
occurs = node.
GetAttribute
(Keywords.MAXOCCURS);
326
instanceName = node.
GetAttribute
(Keywords.NAME);
334
instanceName = node.
GetAttribute
(Keywords.TYPE);
361
string strRef = node.
GetAttribute
(Keywords.REF);
397
strType = node.
GetAttribute
(Keywords.TYPE);
448
strDefault = node.
GetAttribute
(Keywords.DEFAULT);
478
string targetNamespace = node.
GetAttribute
(Keywords.TARGETNAMESPACE);
496
string occurs = elNode.
GetAttribute
(Keywords.MINOCCURS);
504
occurs = elNode.
GetAttribute
(Keywords.MAXOCCURS);
System\Data\xmlsaver.cs (3)
1207
if (n is XmlElement e && e.
GetAttribute
(Keywords.NAME) == name)
1562
if (FindTypeNode(schNode, el.
GetAttribute
(Keywords.NAME)) == null)
1583
if (child.
GetAttribute
(Keywords.NAME) == strType)
System\Data\XMLSchema.cs (1)
442
strName = XmlConvert.DecodeName(node.
GetAttribute
(Keywords.NAME));
System\Xml\XmlDataDocument.cs (2)
2511
if (value.Length == 0 && (((xsi_attrVal = rowElement.
GetAttribute
(XSI_NIL)) == "1") || xsi_attrVal == "true"))
2547
if (value.Length == 0 && (((xsi_attrVal = e.
GetAttribute
(XSI_NIL)) == "1") || xsi_attrVal == "true"))
System\Xml\XPathNodePointer.cs (1)
418
return curBoundElem.
GetAttribute
("xml:lang");
System.Private.Xml (2)
System\Xml\Dom\XmlNode.cs (2)
1353
switch (elem.
GetAttribute
("xml:space").AsSpan().Trim(XmlConvert.WhitespaceChars))
1384
return elem.
GetAttribute
("xml:lang");
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\Utils.cs (2)
42
if (element.HasAttribute(name) && element.
GetAttribute
(name) == value) return true;
67
string? s = (element.HasAttribute(localName) ? element.
GetAttribute
(localName) : null);
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (3)
43
if (inputElement.
GetAttribute
("Id") == idValue || inputElement.
GetAttribute
("id") == idValue ||
44
inputElement.
GetAttribute
("ID") == idValue)
System.ServiceModel.Primitives (5)
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (3)
116
id = tokenXml.
GetAttribute
("AssertionID");
121
id = tokenXml.
GetAttribute
("Id");
127
id = tokenXml.
GetAttribute
("ID");
System\ServiceModel\Security\WSTrust.cs (2)
541
string valueTypeUri = element.
GetAttribute
(SecurityJan2004Strings.ValueType);
675
string valueTypeUri = proofXml.
GetAttribute
(SecurityJan2004Strings.ValueType);
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
394
if (Soap.BasicProfile1_1 == element.
GetAttribute
(Soap.Attribute.ConformsTo))