Base:
property
Name
System.Xml.XmlNode.Name
82 references to Name
Microsoft.Build (18)
Construction\ProjectRootElement.cs (1)
1811
return CreateMetadataElement(attribute.
Name
, attribute.Value, attribute.Location);
Construction\ProjectTaskElement.cs (3)
376
if (!XMakeAttributes.IsSpecialTaskAttribute(attribute.
Name
))
448
if (!XMakeAttributes.IsSpecialTaskAttribute(attribute.
Name
))
454
_parameters[attribute.
Name
] = (attribute.Value, attribute.Location);
Construction\Solution\ProjectInSolution.cs (2)
580
a.
Name
.Equals("xmlns:dwd", StringComparison.OrdinalIgnoreCase) ||
581
a.
Name
.StartsWith("xmlns:dd", StringComparison.OrdinalIgnoreCase));
Evaluation\ProjectParser.cs (8)
327
CheckMetadataAsAttributeName(attribute.
Name
, out isKnownAttribute, out isValidMetadataNameInAttribute);
331
if (_ParserIgnoreConfiguration?.CheckSkipAttribute(ParserIgnoreConfiguration.GenericItemElement, attribute.
Name
) != true)
678
!XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(attribute.
Name
),
681
attribute.
Name
,
766
CheckMetadataAsAttributeName(attribute.
Name
, out bool isKnownAttribute, out bool isValidMetadataNameInAttribute);
770
if (_ParserIgnoreConfiguration?.CheckSkipAttribute(ParserIgnoreConfiguration.GenericItemDefinitionElement, attribute.
Name
) != true)
783
else if (!ValidAttributesOnlyConditionAndLabel.Contains(attribute.
Name
))
785
if (_ParserIgnoreConfiguration?.CheckSkipAttribute(ParserIgnoreConfiguration.GenericItemDefinitionElement, attribute.
Name
) != true)
Xml\ProjectXmlUtilities.cs (4)
147
if (config?.CheckSkipAttribute(element.Name, attribute.
Name
) == true)
185
if (!validAttributes.Contains(attribute.
Name
))
188
if (config?.CheckSkipAttribute(configElementName, attribute.
Name
) == true)
219
ProjectErrorUtilities.ThrowInvalidProject(attribute.Location, "UnrecognizedAttribute", attribute.
Name
, attribute.OwnerElement.Name);
Microsoft.Build.Tasks.Core (6)
BootstrapperUtil\BootstrapperBuilder.cs (4)
1152
var targetAttribute = (XmlAttribute)(targetNode.Attributes.GetNamedItem(attribute.
Name
));
1278
AddAttribute(mergeSubNode, attribute.
Name
, attribute.Value);
1282
if (mergeSubNode.Attributes.GetNamedItem(attribute.
Name
) == null)
1284
AddAttribute(mergeSubNode, attribute.
Name
, attribute.Value);
ManifestUtil\mansign2.cs (1)
665
assemblyIdentityNode.SetAttribute(attribute.
Name
, attribute.Value);
ManifestUtil\XmlUtil.cs (1)
42
XmlAttribute newAttribute = document.CreateAttribute(attribute.
Name
);
Microsoft.Build.Utilities.Core (5)
SDKManifest.cs (5)
375
if (attribute.
Name
.StartsWith(Attributes.FrameworkIdentity, StringComparison.OrdinalIgnoreCase))
382
_frameworkIdentities.Add(attribute.
Name
, value);
386
if (attribute.
Name
.StartsWith(Attributes.APPX, StringComparison.OrdinalIgnoreCase))
393
_appxLocations.Add(attribute.
Name
, value);
397
switch (attribute.
Name
)
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
167
if (attr.
Name
== "xmlns")
Microsoft.TestPlatform.Extensions.BlameDataCollector (8)
BlameCollector.cs (8)
360
case XmlAttribute attribute when string.Equals(attribute.
Name
, Constants.CollectDumpAlwaysKey, StringComparison.OrdinalIgnoreCase):
371
case XmlAttribute attribute when string.Equals(attribute.
Name
, Constants.DumpTypeKey, StringComparison.OrdinalIgnoreCase):
386
_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.
Name
));
394
return string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterValueIncorrect, attribute.
Name
, attribute.Value, string.Join(", ", validValues));
404
case XmlAttribute attribute when string.Equals(attribute.
Name
, Constants.TestTimeout, StringComparison.OrdinalIgnoreCase):
418
case XmlAttribute attribute when string.Equals(attribute.
Name
, Constants.HangDumpTypeKey, StringComparison.OrdinalIgnoreCase):
432
case XmlAttribute attribute when string.Equals(attribute.
Name
, Constants.DumpTypeKey, StringComparison.OrdinalIgnoreCase):
449
_logger.LogWarning(_context.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.BlameParameterKeyIncorrect, blameAttribute.
Name
));
Microsoft.TestPlatform.Utilities (4)
CodeCoverageRunSettingsProcessor.cs (1)
233
if (attribute.
Name
== attributeName
InferRunSettingsHelper.cs (3)
751
if (attribute.
Name
.Equals("friendlyName", StringComparison.OrdinalIgnoreCase) &&
758
if (attribute.
Name
.Equals("uri", StringComparison.OrdinalIgnoreCase) &&
765
if (attribute.
Name
.Equals("assemblyQualifiedName", StringComparison.OrdinalIgnoreCase) &&
Microsoft.Web.Xdt.Extensions (2)
InsertOrAppendAttribute.cs (2)
94
if (string.Equals(att.
Name
, AttributeName, StringComparison.OrdinalIgnoreCase))
111
if (string.Equals(att.
Name
, AttributeName, StringComparison.OrdinalIgnoreCase))
Microsoft.Web.XmlTransform (16)
XmlAttributePreservationDict.cs (3)
138
if (!attributeExists.ContainsKey(attribute.
Name
)) {
139
orderedAttributes.Add(attribute.
Name
);
141
attributeExists[attribute.
Name
] = true;
XmlElementContext.cs (3)
227
else if (attribute.Prefix.Equals("xmlns") || attribute.
Name
.Equals("xmlns")) {
267
int index = nsAttribute.
Name
.IndexOf(':');
269
prefix = nsAttribute.
Name
.Substring(index + 1);
XmlLocators.cs (1)
39
string keySegment = String.Format(CultureInfo.InvariantCulture, "@{0}='{1}'", keyAttribute.
Name
, keyAttribute.Value);
XmlTransformation.cs (2)
297
switch (attribute.
Name
) {
310
throw new XmlNodeException(string.Format(System.Globalization.CultureInfo.CurrentCulture,Resources.XMLTRANSFORMATION_ImportUnknownAttribute, attribute.
Name
), attribute);
XmlTransforms.cs (7)
165
XmlAttribute targetAttribute = TargetNode.Attributes.GetNamedItem(transformAttribute.
Name
) as XmlAttribute;
173
Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageSetAttribute, transformAttribute.
Name
);
272
XmlAttribute targetAttribute = TargetNode.Attributes.GetNamedItem(transformAttribute.
Name
) as XmlAttribute;
287
Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageSetAttribute, transformAttribute.
Name
);
350
if (string.Compare(attributeName, tokenizeValueCurrentXmlAttribute.
Name
, StringComparison.OrdinalIgnoreCase) != 0)
482
path = string.Concat(pathToNode, "/@", xmlAttribute.
Name
);
634
Log.LogMessage(MessageType.Verbose, Resources.XMLTRANSFORMATION_TransformMessageRemoveAttribute, attribute.
Name
);
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
799
if (xmlAttribute.
Name
.Equals("Sdk", StringComparison.OrdinalIgnoreCase))
ReachFramework (2)
PrintConfig\PrtTicket_Editor.cs (2)
153
if (attr.
Name
.StartsWith("xmlns:", StringComparison.Ordinal) ||
154
(attr.
Name
== "xmlns"))
System.Configuration.ConfigurationManager (3)
System\Configuration\HandlerBase.cs (1)
103
SR.Format(SR.Config_base_unrecognized_attribute, node.Attributes[0].
Name
),
System\Configuration\RuntimeConfigurationRecord.cs (1)
127
if (ConfigurationElement.IsLockAttributeName(attribute.
Name
))
System\Configuration\SingleTagSectionHandler.cs (1)
43
result[attribute.
Name
] = attribute.Value;
System.Private.Xml (7)
System\Xml\Dom\XmlAttributeCollection.cs (3)
47
&& name == node.
Name
)
88
&& tmp.
Name
== node.
Name
System\Xml\Serialization\SchemaObjectWriter.cs (3)
25
return string.Compare(a1.
Name
, a2.
Name
, StringComparison.Ordinal);
207
WriteAttribute(a.
Name
, a.NamespaceURI, a.Value);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
991
WriteAttribute(attr.
Name
, attr.NamespaceURI, attr.Value);
System.Security.Cryptography.Xml (9)
System\Security\Cryptography\Xml\CanonicalXmlAttribute.cs (2)
28
strBuilder.Append($" {
Name
}=\"");
35
byte[] rgbData = Encoding.UTF8.GetBytes(" " +
Name
+ "=\"");
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
554
propagatedNamespace.
Name
,
System\Security\Cryptography\Xml\Utils.cs (6)
82
bool attrIsAllowed = attr.
Name
== "xmlns" || attr.
Name
.StartsWith("xmlns:") || attr.
Name
== "xml:space" || attr.
Name
== "xml:lang" || attr.
Name
== "xml:base";
86
attrIsAllowed = attr.
Name
== expectedAttrNames[expectedInd];