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