54 references to RemoveChild
Microsoft.Build (10)
Construction\ProjectElementContainer.cs (2)
338/// during enumeration. See <see cref="ProjectElementContainer.RemoveChild(ProjectElement)"/>. 344RemoveChild(child);
Definition\Project.cs (6)
1694itemElement.Parent.RemoveChild(itemElement); 3163property.Xml.Parent.RemoveChild(property.Xml); 3167parent.Parent.RemoveChild(parent); 3415itemElement.Parent.RemoveChild(itemElement); 3653item.Xml.Parent.RemoveChild(item.Xml); 3657parent.Parent.RemoveChild(parent);
Definition\ProjectItem.cs (1)
662_xml.RemoveChild(metadatum.Xml);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
52/// Facilitate remoting the <see cref="ProjectElementContainer.RemoveChild"/>.
Microsoft.Build.Engine.OM.UnitTests (44)
Construction\ConstructionEditing_Tests.cs (22)
1121updateElement.Parent.RemoveChild(updateElement); 1177project.RemoveChild(target); 1196project.RemoveChild(target); 1211project2.RemoveChild(target); 1228itemGroup2.RemoveChild(item); 1337project.RemoveChild(target2); 1361project.RemoveChild(target1); 1416project.RemoveChild(target1); 1442project.RemoveChild(target1); 1486project.RemoveChild(target1); 2376group1.RemoveChild(item1); 2377group1.RemoveChild(item2); 2399group1.RemoveChild(item1); 2400group1.RemoveChild(item2); 2422group1.RemoveChild(item1); 2423group1.RemoveChild(item2); 2445group1.RemoveChild(item1); 2446group1.RemoveChild(item2); 2468group1.RemoveChild(item1); 2469group1.RemoveChild(item2); 2492group1.RemoveChild(item1); 2493group1.RemoveChild(item2);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (21)
196newTarget1.View.RemoveChild(newTask2.View); 197Assert.ThrowsAny<ArgumentException>(() => newTarget1.Real.RemoveChild(newTask2.Real)); 199newTarget1.Real.RemoveChild(newTask1.Real); 200Assert.ThrowsAny<ArgumentException>(() => newTarget1.View.RemoveChild(newTask1.View)); 295newTask.View.RemoveChild(newOutputItem2.View); 296Assert.ThrowsAny<ArgumentException>(() => newTask.Real.RemoveChild(newOutputItem2.Real)); 298newTask.Real.RemoveChild(newOutputItemWithConfig2.Real); 299Assert.ThrowsAny<ArgumentException>(() => newTask.View.RemoveChild(newOutputItem2.View)); 303newTask.Real.RemoveChild(newOutputProp2.Real); 305newTask.View.RemoveChild(newOutputPropWithConfig2.View); 397choose.View.RemoveChild(when2.View); 401choose.View.RemoveChild(otherWise.View); 431when.View.RemoveChild(choose2.View); 433when.Real.RemoveChild(choose1.Real); 436when.View.RemoveChild(itemGroup2.View); 439when.View.RemoveChild(propGroup2.View); 469otherwise.View.RemoveChild(choose2.View); 471otherwise.Real.RemoveChild(choose1.Real); 474otherwise.View.RemoveChild(itemGroup2.View); 477otherwise.View.RemoveChild(propGroup2.View); 510xmlPair.View.RemoveChild(usingTaskFile.View);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (1)
46this.ContainerXml.RemoveChild(child.Import(this.OwningCollection));