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