Base:
property
Name
System.Xml.XmlNode.Name
197 references to Name
Microsoft.Build (56)
Construction\ProjectElement.cs (2)
297
public string ElementName => Link != null ? Link.ElementName : XmlElement.
Name
;
467
MarkDirty("Replace element {0}", newElement.
Name
);
Construction\ProjectElementContainer.cs (4)
448
ProjectXmlUtilities.SetOrRemoveAttribute(XmlElement, child.XmlElement.
Name
, value);
485
ProjectErrorUtilities.VerifyThrowInvalidProject(!XmlElement.HasAttribute(child.XmlElement.
Name
),
486
XmlElement.Location, "InvalidChildElementDueToDuplication", child.XmlElement.
Name
, ElementName);
587
XmlElement.RemoveAttribute(child.XmlElement.
Name
);
Definition\Toolset.cs (1)
1086
elementXml.XmlElement.
Name
);
Evaluation\ProjectParser.cs (39)
136
ProjectErrorUtilities.VerifyThrowInvalidProject(element.
Name
!= XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath);
137
ProjectErrorUtilities.VerifyThrowInvalidProject(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.
Name
);
157
switch (childElement.
Name
)
203
ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "ErrorWarningMessageNotSupported", childElement.
Name
);
207
ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.
Name
, childElement.ParentNode.Name, childElement.Location);
226
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.
Name
) && !ReservedPropertyNames.IsReservedProperty(childElement.
Name
), childElement.Location, "CannotModifyReservedProperty", childElement.
Name
);
263
string itemType = element.
Name
;
399
ProjectErrorUtilities.VerifyThrowInvalidProject(!(parent is ProjectItemElement) || ((ProjectItemElement)parent).Remove.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.
Name
);
400
ProjectErrorUtilities.VerifyThrowInvalidProject(!FileUtilities.ItemSpecModifiers.IsItemSpecModifier(element.
Name
), element.Location, "ItemSpecModifierCannotBeCustomMetadata", element.
Name
);
401
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(element.
Name
), element.Location, "CannotModifyReservedItemMetadata", element.
Name
);
430
childElement.
Name
== XMakeElements.import,
433
childElement.
Name
,
434
element.
Name
);
486
if (listOfChildElementNames.Contains(childElement.
Name
))
498
listOfChildElementNames.Add(childElement.
Name
);
535
string childElementName = childElement.
Name
;
559
ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.
Name
, element.
Name
, element.Location);
593
switch (childElement.
Name
)
598
ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.
Name
);
607
ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.
Name
);
624
ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "ItemDefinitionGroupNotLegalInsideTarget", childElement.
Name
);
630
ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.
Name
);
637
ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "PropertyOutsidePropertyGroupInTarget", childElement.
Name
, childElement.ParentNode.Name);
663
element.
Name
,
664
element.
Name
);
671
ProjectErrorUtilities.VerifyThrowInvalidProject(childElement.
Name
== XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.
Name
, task.Name);
788
switch (childElement.
Name
)
803
ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.
Name
, element.
Name
, element.Location);
852
switch (childElement.
Name
)
871
ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.
Name
, element.
Name
, element.Location);
902
ProjectErrorUtilities.ThrowInvalidProject(element.Location, "InvalidSdkElementName", element.
Name
);
SolutionConfiguration.cs (1)
81
if (!String.Equals(dependencyElement.
Name
, "ProjectDependency", StringComparison.Ordinal))
Xml\ProjectXmlUtilities.cs (6)
63
ThrowProjectInvalidChildElement(child.
Name
, element.
Name
, element.Location);
73
ProjectErrorUtilities.ThrowInvalidProject(child.Location, "InvalidChildElementDueToDuplication", child.
Name
, child.ParentNode.Name);
143
xmlElement.
Name
);
177
ProjectErrorUtilities.VerifyThrowInvalidProject(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.
Name
);
196
ProjectErrorUtilities.ThrowInvalidProject(attribute.Location, "UnrecognizedAttribute", attribute.Name, attribute.OwnerElement.
Name
);
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (1)
100
ThrowProjectInvalidChildElement(child.Name, _element.
Name
, _element.Location);
XmlUtilities.cs (2)
30
if (String.Equals(oldElement.
Name
, newElementName, StringComparison.Ordinal) && String.Equals(oldElement.NamespaceURI, xmlNamespace, StringComparison.Ordinal))
109
string name = element.
Name
;
Microsoft.Build.Conversion.Core (54)
ProjectFileConverter.cs (54)
640
if (visualStudioProjectElement.
Name
== XMakeProjectStrings.project)
829
ProjectErrorUtilities.VerifyThrowInvalidProject(visualStudioProjectElement.
Name
==
831
visualStudioProjectElement.Location, "UnrecognizedElement", visualStudioProjectElement.
Name
);
1624
error.VerifyThrow((visualStudioProjectElement?.
Name
== VSProjectElements.visualStudioProject),
1658
switch (visualStudioProjectChildElement.
Name
)
1677
"UnrecognizedChildElement", visualStudioProjectChildElement.
Name
,
1684
ProjectXmlUtilities.ThrowProjectInvalidChildElement(visualStudioProjectChildNode.Name, visualStudioProjectElement.
Name
, visualStudioProjectElement.Location);
1709
languageElement.Location, "MissingAttribute", languageElement.
Name
, VSProjectAttributes.projectGuid);
1794
if (languageElement.
Name
== VSProjectElements.ECSharp)
1806
else if (languageElement.
Name
== VSProjectElements.EVisualBasic)
1834
switch (languageChildElement.
Name
)
1860
languageElement.
Name
);
1866
ProjectXmlUtilities.ThrowProjectInvalidChildElement(languageChildNode.Name, languageElement.
Name
, languageElement.Location);
1938
if (languageElement.
Name
== VSProjectElements.ECSharp)
1942
else if (languageElement.
Name
== VSProjectElements.EVisualBasic)
1946
else if (languageElement.
Name
== VSProjectElements.cSharp)
1950
else if (languageElement.
Name
== VSProjectElements.visualBasic)
1954
else if (languageElement.
Name
== VSProjectElements.visualJSharp)
1960
xmakeProject.AddImport(XMakeProjectStrings.importPrefix + XMakeProjectStrings.targetsFilenamePrefix + languageElement.
Name
+ XMakeProjectStrings.importSuffix);
2014
error.VerifyThrow((buildElement?.
Name
== VSProjectElements.build), "Expected <Build> element.");
2039
switch (buildChildElement.
Name
)
2065
ProjectXmlUtilities.ThrowProjectInvalidChildElement(buildChildNode.Name, buildElement.
Name
, buildElement.Location);
2081
error.VerifyThrow((settingsElement?.
Name
== VSProjectElements.settings),
2168
switch (settingsChildElement.
Name
)
2182
"UnrecognizedChildElement", settingsChildElement.
Name
,
2189
ProjectXmlUtilities.ThrowProjectInvalidChildElement(settingsChildNode.Name, settingsElement.
Name
, settingsElement.Location);
2206
error.VerifyThrow((configElement?.
Name
== VSProjectElements.config),
2414
switch (configChildElement.
Name
)
2423
"UnrecognizedChildElement", configChildElement.
Name
,
2430
ProjectXmlUtilities.ThrowProjectInvalidChildElement(configChildNode.Name, configElement.
Name
, configElement.Location);
2449
error.VerifyThrow((platformElement?.
Name
== VSProjectElements.platform),
2541
error.VerifyThrow((interopRegistrationElement?.
Name
== VSProjectElements.interopRegistration),
2597
error.VerifyThrow((referencesElement?.
Name
== VSProjectElements.references),
2643
switch (referencesChildElement.
Name
)
2657
"UnrecognizedChildElement", referencesChildElement.
Name
,
2664
ProjectXmlUtilities.ThrowProjectInvalidChildElement(referencesChildNode.Name, referencesElement.
Name
, referencesElement.Location);
2681
error.VerifyThrow((referenceElement?.
Name
== VSProjectElements.reference),
3129
error.VerifyThrow((importsElement?.
Name
== VSProjectElements.imports),
3169
"UnrecognizedChildElement", importsChildElement.
Name
,
3176
ProjectXmlUtilities.ThrowProjectInvalidChildElement(importsChildNode.Name, importsElement.
Name
, importsElement.Location);
3193
error.VerifyThrow((importElement?.
Name
== VSProjectElements.import),
3245
error.VerifyThrow((filesElement?.
Name
== VSProjectElements.files),
3295
ProjectXmlUtilities.ThrowProjectInvalidChildElement(filesChildNode.Name, filesElement.
Name
, filesElement.Location);
3311
error.VerifyThrow((includeElement?.
Name
== VSProjectElements.include),
3342
switch (includeChildElement.
Name
)
3363
ProjectXmlUtilities.ThrowProjectInvalidChildElement(includeChildNode.Name, includeElement.
Name
, includeElement.Location);
3380
error.VerifyThrow((fileElement?.
Name
== VSProjectElements.file),
3569
error.VerifyThrow((folderElement?.
Name
== VSProjectElements.folder),
3717
error.VerifyThrow((startupServicesElement?.
Name
== VSProjectElements.startupServices),
3743
switch (startupServicesChildElement.
Name
)
3764
ProjectXmlUtilities.ThrowProjectInvalidChildElement(startupServicesChildNode.Name, startupServicesElement.
Name
, startupServicesElement.Location);
3781
error.VerifyThrow((serviceElement?.
Name
== VSProjectElements.service),
3833
error.VerifyThrow((otherProjectSettingsElement?.
Name
== VSProjectElements.otherProjectSettings),
3889
error.VerifyThrow((userPropertiesElement?.
Name
== VSProjectElements.userProperties),
Microsoft.Build.Engine (54)
Choose\When.cs (3)
68
error.VerifyThrow(whenElement.
Name
== XMakeElements.when || whenElement.
Name
== XMakeElements.otherwise,
70
XMakeElements.when, XMakeElements.otherwise, whenElement.
Name
);
Engine\BuildTask.cs (1)
125
this.taskName = taskElement.
Name
;
Engine\Project.cs (4)
2044
this.mainProjectElement, "UnrecognizedElement", this.mainProjectElement.
Name
);
3857
switch (childElement.
Name
)
3937
ProjectErrorUtilities.VerifyThrowInvalidProject(false, childElement, "ErrorWarningMessageNotSupported", childElement.
Name
);
3943
switch (importGroupChild.
Name
)
Engine\Target.cs (2)
257
switch (childElement.
Name
)
272
anyOnErrorElement, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.
Name
);
Engine\TargetExecutionWrapper.cs (1)
359
switch (childElement.
Name
)
Engine\TaskEngine.cs (1)
98
get { return taskNode.
Name
; }
Engine\UsingTask.cs (3)
215
ErrorUtilities.VerifyThrow(usingTaskNode.
Name
== XMakeElements.usingTask,
216
"Expected <{0}> element; received <{1}> element.", XMakeElements.usingTask, usingTaskNode.
Name
);
223
switch (childElement.
Name
)
Items\BuildItem.cs (4)
1369
unevaluatedCustomMetadata[metadataElement.
Name
] = unevaluatedMetadataValue;
1371
evaluatedCustomMetadata[metadataElement.
Name
] = evaluatedMetadataValue;
1374
expander.SetMetadataInMetadataTable(name, metadataElement.
Name
, evaluatedMetadataValue);
1624
destinationItem.SetMetadata(child.
Name
, child.InnerXml);
Items\ItemDefinitionLibrary.cs (7)
246
string itemType = itemDefinitionElement.
Name
;
274
ProjectErrorUtilities.VerifyThrowInvalidProject(!FileUtilities.IsItemSpecModifier(itemDefinitionChildElement.
Name
), itemDefinitionChildElement, "ItemSpecModifierCannotBeCustomMetadata", itemDefinitionChildElement.
Name
);
275
ProjectErrorUtilities.VerifyThrowInvalidProject(XMakeElements.IllegalItemPropertyNames[itemDefinitionChildElement.
Name
] == null, itemDefinitionChildElement, "CannotModifyReservedItemMetadata", itemDefinitionChildElement.
Name
);
296
ProjectErrorUtilities.VerifyThrowInvalidProject(!containsItemVector, itemDefinitionChildElement, "MetadataDefinitionCannotContainItemVectorExpression", unevaluatedMetadataValue, itemDefinitionChildElement.
Name
);
309
metadataDictionary[itemDefinitionChildElement.
Name
] = evaluatedMetadataValue;
Properties\BuildProperty.cs (1)
416
return this.propertyElement.
Name
;
Shared\XmlUtilities.cs (1)
133
string name = element.
Name
;
Solution\VCProjectParser.cs (1)
62
if ((string.Equals(element.
Name
, "Configuration", StringComparison.OrdinalIgnoreCase)) &&
Tasks\IntrinsicTask.cs (3)
37
ErrorUtilities.VerifyThrow(IsIntrinsicTaskName(taskNodeXmlElement.
Name
), "Only PropertyGroup and ItemGroup are known intrinsic tasks");
39
switch (taskNodeXmlElement.
Name
)
271
metadataToSet[metadataElement.
Name
] = evaluatedMetadataValue;
Xml\BuildItemGroupChildXml.cs (13)
101
ProjectErrorUtilities.VerifyThrowInvalidProject(Include.Length > 0, element, "MissingRequiredAttribute", XMakeAttributes.include, element.
Name
);
109
ProjectErrorUtilities.VerifyThrowInvalidProject(Include.Length > 0, element, "MissingRequiredAttribute", XMakeAttributes.include, element.
Name
);
117
ProjectErrorUtilities.VerifyThrowInvalidProject(Remove.Length > 0, element, "MissingRequiredAttribute", XMakeAttributes.remove, element.
Name
);
129
ProjectErrorUtilities.VerifyThrowInvalidProject(Include.Length > 0, element, "MissingRequiredAttribute", XMakeAttributes.include, element.
Name
);
133
ProjectErrorUtilities.VerifyThrowInvalidProject(Remove.Length > 0, element, "MissingRequiredAttribute", XMakeAttributes.remove, element.
Name
);
146
ProjectErrorUtilities.ThrowInvalidProject(element, "ChildElementsBelowRemoveNotAllowed", children[0].
Name
);
153
ProjectErrorUtilities.VerifyThrowInvalidProject(!FileUtilities.IsItemSpecModifier(child.
Name
), child, "ItemSpecModifierCannotBeCustomMetadata", child.
Name
);
154
ProjectErrorUtilities.VerifyThrowInvalidProject(XMakeElements.IllegalItemPropertyNames[child.
Name
] == null, child, "CannotModifyReservedItemMetadata", child.
Name
);
167
return element.
Name
;
281
if (String.Equals(name, child.
Name
, StringComparison.OrdinalIgnoreCase))
303
if (String.Equals(name, child.
Name
, StringComparison.OrdinalIgnoreCase))
Xml\ProjectXmlUtilities.cs (9)
88
ErrorUtilities.VerifyThrowNoAssert(String.Equals(element.
Name
, expected, StringComparison.Ordinal), "Expected " + expected + " element, got " + element.
Name
);
108
ProjectErrorUtilities.ThrowInvalidProject(element, "CustomNamespaceNotAllowedOnThisChildElement", element.
Name
, element.ParentNode.Name);
139
ProjectErrorUtilities.ThrowInvalidProject(attribute, "UnrecognizedAttribute", attribute.Name, attribute.OwnerElement.
Name
);
163
String.Equals(element.
Name
, XMakeElements.propertyGroup, StringComparison.Ordinal) ||
164
String.Equals(element.
Name
, XMakeElements.itemDefinitionGroup, StringComparison.Ordinal) ||
165
String.Equals(element.
Name
, XMakeElements.itemGroup, StringComparison.Ordinal)
168
ProjectErrorUtilities.VerifyThrowInvalidProject(!verifySoleAttribute, attribute, "UnrecognizedAttribute", attribute.Name, element.
Name
);
174
ProjectErrorUtilities.VerifyThrowInvalidProject(!verifySoleAttribute, attribute, "UnrecognizedAttribute", attribute.Name, element.
Name
);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\XmlUtil.cs (1)
40
XmlElement newElement = document.CreateElement(element.
Name
, namespaceURI);
SolutionConfiguration.cs (1)
81
if (!String.Equals(dependencyElement.
Name
, "ProjectDependency", StringComparison.Ordinal))
Microsoft.Build.Utilities.Core (5)
ApiContract.cs (1)
48
if (element != null && IsContainedApiContractsElement(element.
Name
))
PlatformManifest.cs (3)
135
if (ApiContract.IsContainedApiContractsElement(childElement.
Name
))
139
else if (ApiContract.IsVersionedContentElement(childElement.
Name
))
144
else if (string.Equals(childElement.
Name
, Elements.DependentPlatform, StringComparison.Ordinal))
SDKManifest.cs (1)
349
if (ApiContract.IsContainedApiContractsElement(childElement.
Name
))
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
641
if (nodeGroup != null && String.Compare(nodeGroup.
Name
, groupName, StringComparison.OrdinalIgnoreCase) == 0)
654
if (nodeItem != null && String.Compare(nodeItem.
Name
, sItemName, StringComparison.OrdinalIgnoreCase) == 0)
PresentationFramework (3)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
665
if (node.
Name
.Equals(xmlName))
MS\Internal\Globalization\BamlTreeMap.cs (1)
660
if (element.
Name
== LocComments.LocCommentsElement
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
499
string className = bamlTreeMap.Resolver.ResolveFormattingTagToClass(child.
Name
);
System.Configuration.ConfigurationManager (1)
System\Configuration\NameValueFileSectionHandler.cs (1)
56
if (section.Name != doc.DocumentElement.
Name
)
System.Data.Common (2)
System\Data\DataSet.cs (2)
2249
if (DataSetName != root.
Name
&& _namespaceURI != root.NamespaceURI &&
2250
Tables.Contains(root.
Name
, (root.NamespaceURI.Length == 0) ? null : root.NamespaceURI, false, true))
System.Private.Xml (4)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
248
if (element.Name == elem.
Name
&& element.Namespace == elem.NamespaceURI)
257
throw CreateChoiceIdentifierValueException(choice.Mapping!.TypeDesc!.FullName, choice.MemberName!, elem.
Name
, elem.NamespaceURI);
266
throw CreateUnknownAnyElementException(elem.
Name
, elem.NamespaceURI);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1492
if (e.
Name
== "keepNamespaceDeclarations")
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (4)
68
strBuilder.Append('<').Append(
Name
);
94
strBuilder.Append($"</{
Name
}>");
139
rgbData = Encoding.UTF8.GetBytes("<" +
Name
);
167
rgbData = Encoding.UTF8.GetBytes("</" +
Name
+ ">");
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
161
if (value.
Name
!= KeyValueElementName
System.ServiceModel.Federation.Tests (2)
WSTrustChannelSecurityTokenProviderTest.cs (2)
74
Assert.Equal(eln1, trustRequest.AdditionalXmlElements[0].
Name
);
75
Assert.Equal(eln2, trustRequest.AdditionalXmlElements[1].
Name
);
System.ServiceModel.Primitives (5)
System\ServiceModel\Security\WSTrust.cs (2)
786
XmlHelper.OnRequiredAttributeMissing("EncodingType", elem.
Name
);
790
XmlHelper.OnRequiredAttributeMissing("ValueType", elem.
Name
);
System\ServiceModel\Security\XmlHelper.cs (3)
176
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ChildNodeTypeMissing, parent.
Name
, expectedNodeType)));
186
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, e.
Name
)));
216
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.
Name
)));
System.Web.Services.Description (2)
System\Web\Services\Protocols\RuntimeUtils.cs (2)
17
xml.Write(element.
Name
);
31
xml.Write(element.
Name
);