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