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)
798Helpers.GetFirst(project.GetItems("i")).RemoveMetadata("m"); 1245item.RemoveMetadata("m"); 1654item.RemoveMetadata("m"); 1662AssertDisabledItemSplitting(projectContents, itemIndex, setupProject, (p, i) => { i.RemoveMetadata("bar"); }, "bar"); 1706(p, i) => { i.RemoveMetadata("bar"); },
Definition\EditingElementsReferencedByOrReferences_Tests.cs (5)
143item1.RemoveMetadata("M"); 189item1.RemoveMetadata("M"); 241item1.RemoveMetadata("M"); 245item2.RemoveMetadata("M"); 289item.RemoveMetadata("M");
Definition\ProjectItem_Tests.cs (6)
1876bool found = item.RemoveMetadata("m"); 1897bool found = item.RemoveMetadata("m"); 1921item.RemoveMetadata("m"); // Should throw 1934bool found = item.RemoveMetadata("m"); 1954item.RemoveMetadata("FullPath"); 2132item.RemoveMetadata("m");
Definition\ProtectImports_Tests.cs (4)
353item.RemoveMetadata(ImportedMetadataName); 410item.RemoveMetadata(ProjectMetadataName); 446item.RemoveMetadata(NonOverridableMetadataName); 486item.RemoveMetadata(OverridableMetadataName);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (3)
243Assert.False(fooView.RemoveMetadata("xxNone")); 244Assert.True(fooView.RemoveMetadata("xx")); 256Assert.True(fooReal.RemoveMetadata("xxReal"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
33public bool RemoveMetadata(string name) => this.Source.RemoveMetadata(name);