27 references to RemoveMetadata
Microsoft.Build (3)
Definition\Project.cs (2)
94
/// - <see cref="ProjectItem.
RemoveMetadata
"/>
1985
/// - <see cref="ProjectItem.
RemoveMetadata
"/>
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
64
/// Facilitate remoting the <see cref="ProjectItem.
RemoveMetadata
"/>.
Microsoft.Build.Engine.OM.UnitTests (24)
Definition\DefinitionEditing_Tests.cs (5)
798
Helpers.GetFirst(project.GetItems("i")).
RemoveMetadata
("m");
1245
item.
RemoveMetadata
("m");
1654
item.
RemoveMetadata
("m");
1662
AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.
RemoveMetadata
("bar"); }, "bar");
1706
(p, i) => { i.
RemoveMetadata
("bar"); },
Definition\EditingElementsReferencedByOrReferences_Tests.cs (5)
143
item1.
RemoveMetadata
("M");
189
item1.
RemoveMetadata
("M");
241
item1.
RemoveMetadata
("M");
245
item2.
RemoveMetadata
("M");
289
item.
RemoveMetadata
("M");
Definition\ProjectItem_Tests.cs (6)
1876
bool found = item.
RemoveMetadata
("m");
1897
bool found = item.
RemoveMetadata
("m");
1921
item.
RemoveMetadata
("m"); // Should throw
1934
bool found = item.
RemoveMetadata
("m");
1954
item.
RemoveMetadata
("FullPath");
2132
item.
RemoveMetadata
("m");
Definition\ProtectImports_Tests.cs (4)
353
item.
RemoveMetadata
(ImportedMetadataName);
410
item.
RemoveMetadata
(ProjectMetadataName);
446
item.
RemoveMetadata
(NonOverridableMetadataName);
486
item.
RemoveMetadata
(OverridableMetadataName);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (3)
243
Assert.False(fooView.
RemoveMetadata
("xxNone"));
244
Assert.True(fooView.
RemoveMetadata
("xx"));
256
Assert.True(fooReal.
RemoveMetadata
("xxReal"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
33
public bool RemoveMetadata(string name) => this.Source.
RemoveMetadata
(name);