Implemented interface member:
property
ElementName
Microsoft.Build.Framework.IProjectElement.ElementName
34 references to ElementName
Microsoft.Build (29)
Construction\ProjectElement.cs (1)
375ReplaceElement(XmlUtilities.RenameXmlElement(XmlElement, element.ElementName, XmlElement.NamespaceURI));
Construction\ProjectElementContainer.cs (5)
183MarkDirty("Insert element {0}", child.ElementName); 239MarkDirty("Insert element {0}", child.ElementName); 330MarkDirty("Remove element {0}", child.ElementName); 503XmlElement.Location, "InvalidChildElementDueToDuplication", child.XmlElement.Name, ElementName); 666MarkDirty("Add child element named '{0}'", child.ElementName);
Construction\ProjectItemDefinitionElement.cs (2)
48public string ItemType => ElementName; 80ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName, Location);
Construction\ProjectItemElement.cs (11)
85get => ElementName; 105ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 127ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || Remove.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.remove); 128ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || Update.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.update); 149ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Include.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 168ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Include.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 191ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || RemoveMetadata.Length != 0, "OM_MatchOnMetadataOnlyApplicableToRemoveItems", ElementName, XMakeAttributes.matchOnMetadata); 211ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || MatchOnMetadata.Length != 0, "OM_MatchOnMetadataOptionsOnlyApplicableToItemsWithMatchOnMetadata", ElementName, XMakeAttributes.matchOnMetadataOptions); 232ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || RemoveMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.removeMetadata, XMakeAttributes.keepMetadata); 253ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || KeepMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata); 397ProjectMetadataElement.ValidateValidMetadataAsAttributeName(name, ElementName, Location);
Construction\ProjectMetadataElement.cs (3)
50get => ElementName; 70ValidateValidMetadataAsAttributeName(Name, Parent?.ElementName ?? "null", Parent?.Location); 134ValidateValidMetadataAsAttributeName(newName, Parent.ElementName, Parent.Location);
Construction\ProjectOutputElement.cs (2)
93ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(PropertyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName); 113ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(ItemType), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName);
Construction\ProjectPropertyElement.cs (1)
58get => ElementName;
Construction\ProjectTaskElement.cs (1)
123public string Name => ElementName;
Construction\ProjectUsingTaskElement.cs (1)
57ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(AssemblyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName);
Construction\ProjectUsingTaskParameterElement.cs (1)
60get => ElementName;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
59/// Access to remote <see cref="ProjectElement.ElementName"/>.
Microsoft.Build.Engine.OM.UnitTests (5)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
43=> AppendNewChaildWithVerify(where, name, adder, (c, n) => string.Equals(c.ElementName, n)); 72=> AddNewChaildWithVerify(where, name, adder, (c, n) => string.Equals(c.ElementName, n)); 404Assert.Equal(realXml.ElementName, viewXml.ElementName);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (1)
27public string ElementName => Source.ElementName;