16 types derived from ProjectElementContainer
Microsoft.Build (16)
Construction\ProjectChooseElement.cs (1)
19public class ProjectChooseElement : ProjectElementContainer
Construction\ProjectElement.cs (1)
613private class WrapperForProjectRootElement : ProjectElementContainer
Construction\ProjectImportGroupElement.cs (1)
17public class ProjectImportGroupElement : ProjectElementContainer
Construction\ProjectItemDefinitionElement.cs (1)
18public class ProjectItemDefinitionElement : ProjectElementContainer
Construction\ProjectItemDefinitionGroupElement.cs (1)
18public class ProjectItemDefinitionGroupElement : ProjectElementContainer
Construction\ProjectItemElement.cs (1)
19public class ProjectItemElement : ProjectElementContainer
Construction\ProjectItemGroupElement.cs (1)
19public class ProjectItemGroupElement : ProjectElementContainer
Construction\ProjectOtherwiseElement.cs (1)
17public class ProjectOtherwiseElement : ProjectElementContainer
Construction\ProjectPropertyGroupElement.cs (1)
18public class ProjectPropertyGroupElement : ProjectElementContainer
Construction\ProjectRootElement.cs (1)
46public class ProjectRootElement : ProjectElementContainer
Construction\ProjectSdkElement.cs (1)
14public class ProjectSdkElement : ProjectElementContainer
Construction\ProjectTargetElement.cs (1)
21public class ProjectTargetElement : ProjectElementContainer
Construction\ProjectTaskElement.cs (1)
21public class ProjectTaskElement : ProjectElementContainer
Construction\ProjectUsingTaskElement.cs (1)
18public class ProjectUsingTaskElement : ProjectElementContainer
Construction\ProjectWhenElement.cs (1)
18public class ProjectWhenElement : ProjectElementContainer
Construction\UsingTaskParameterGroupElement.cs (1)
19public class UsingTaskParameterGroupElement : ProjectElementContainer
172 references to ProjectElementContainer
Microsoft.Build (89)
Construction\ProjectChooseElement.cs (3)
32internal ProjectChooseElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 105internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling) 110ProjectElementContainer immediateParent = parent;
Construction\ProjectElement.cs (8)
25private ProjectElementContainer _parent; 61internal ProjectElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 149public ProjectElementContainer Parent 190public IEnumerable<ProjectElementContainer> AllParents 194ProjectElementContainer currentParent = Parent; 474internal abstract void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer proposedParent, ProjectElement previousSibling, ProjectElement nextSibling); 495internal virtual void OnAfterParentChanged(ProjectElementContainer newParent) 632internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectElementContainer.cs (14)
57internal ProjectElementContainer(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 338/// during enumeration. See <see cref="ProjectElementContainer.RemoveChild(ProjectElement)"/>. 352public virtual void DeepCopyFrom(ProjectElementContainer element) 367if (child is ProjectElementContainer childContainer) 414protected internal virtual ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) 416var clone = (ProjectElementContainer)Clone(factory); 421if (child is ProjectElementContainer childContainer) 434internal static ProjectElementContainer DeepClone(ProjectElementContainer xml, ProjectRootElement factory, ProjectElementContainer parent) 716if (child is ProjectElementContainer container) 740if (child is ProjectElementContainer container)
Construction\ProjectExtensionsElement.cs (1)
203internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectImportElement.cs (2)
35internal ProjectImportElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject, SdkReference sdkReference = null) 176internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectImportGroupElement.cs (2)
31internal ProjectImportGroupElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 87internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectItemDefinitionElement.cs (1)
113internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectItemDefinitionGroupElement.cs (2)
31internal ProjectItemDefinitionGroupElement(XmlElement xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 78internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectItemElement.cs (2)
473internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling) 482internal override void OnAfterParentChanged(ProjectElementContainer parent)
Construction\ProjectItemGroupElement.cs (2)
39internal ProjectItemGroupElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 175internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectMetadataElement.cs (2)
31internal ProjectMetadataElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement project) 166internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectOnErrorElement.cs (1)
87internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectOtherwiseElement.cs (2)
30internal ProjectOtherwiseElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement project) 99internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectOutputElement.cs (1)
168internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectPropertyElement.cs (1)
132internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectPropertyGroupElement.cs (2)
31internal ProjectPropertyGroupElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 108internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectRootElement.cs (1)
1802internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectSdkElement.cs (1)
79internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent,
Construction\ProjectTargetElement.cs (1)
415internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectTaskElement.cs (1)
425internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectUsingTaskBodyElement.cs (2)
143internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling) 157private static void VerifyCorrectParent(ProjectElementContainer parent)
Construction\ProjectUsingTaskElement.cs (1)
266internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectUsingTaskParameterElement.cs (1)
191internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\ProjectWhenElement.cs (1)
80internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling)
Construction\UsingTaskParameterGroupElement.cs (3)
32internal UsingTaskParameterGroupElement(XmlElementWithLocation xmlElement, ProjectElementContainer parent, ProjectRootElement containingProject) 112internal override void VerifyThrowInvalidOperationAcceptableLocation(ProjectElementContainer parent, ProjectElement previousSibling, ProjectElement nextSibling) 126private static void VerifyCorrectParent(ProjectElementContainer parent)
Definition\Project.cs (2)
3161ProjectElementContainer parent = property.Xml.Parent; 3651ProjectElementContainer parent = item.Xml.Parent;
Evaluation\Evaluator.cs (1)
1458private bool EvaluateWhenOrOtherwiseChildren(ProjectElementContainer.ProjectElementSiblingEnumerable children)
Evaluation\ProjectParser.cs (8)
216private ProjectPropertyGroupElement ParseProjectPropertyGroupElement(XmlElementWithLocation element, ProjectElementContainer parent) 240private ProjectItemGroupElement ParseProjectItemGroupElement(XmlElementWithLocation element, ProjectElementContainer parent) 393private ProjectMetadataElement ParseProjectMetadataElement(XmlElementWithLocation element, ProjectElementContainer parent) 447private ProjectImportElement ParseProjectImportElement(XmlElementWithLocation element, ProjectElementContainer parent) 475private UsingTaskParameterGroupElement ParseUsingTaskParameterGroupElement(XmlElementWithLocation element, ProjectElementContainer parent) 707private ProjectItemDefinitionGroupElement ParseProjectItemDefinitionGroupElement(XmlElementWithLocation element, ProjectElementContainer parent) 769private ProjectChooseElement ParseProjectChooseElement(XmlElementWithLocation element, ProjectElementContainer parent, int nestingDepth) 843private void ParseWhenOtherwiseChildren(XmlElementWithLocation element, ProjectElementContainer parent, int nestingDepth)
Instance\ProjectItemDefinitionInstance.cs (1)
210internal ProjectItemDefinitionElement ToProjectItemDefinitionElement(ProjectElementContainer parent)
Instance\ProjectItemInstance.cs (1)
677internal ProjectItemElement ToProjectItemElement(ProjectElementContainer parent)
Instance\ProjectPropertyInstance.cs (1)
306internal ProjectPropertyElement ToProjectPropertyElement(ProjectElementContainer parent)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (16)
12/// Allow for creating a local representation to external construction objects derived from <see cref="ProjectElementContainer"/> 17/// Access to remote <see cref="ProjectElementContainer.Count"/>. 22/// Access to remote <see cref="ProjectElementContainer.FirstChild"/>. 27/// Access to remote <see cref="ProjectElementContainer.LastChild"/>. 32/// Facilitate remoting the <see cref="ProjectElementContainer.InsertAfterChild"/>. 37/// Facilitate remoting the <see cref="ProjectElementContainer.InsertBeforeChild"/>. 42/// Helps implementation of the <see cref="ProjectElementContainer.AppendChild"/>. 47/// helps implementation the <see cref="ProjectElementContainer.DeepCopyFrom"/>. 49public abstract ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent); 52/// Facilitate remoting the <see cref="ProjectElementContainer.RemoveChild"/>. 59public static void AddInitialChild(ProjectElementContainer xml, ProjectElement child) => xml.AddInitialChild(child); 60public static ProjectElementContainer DeepClone(ProjectElementContainer xml, ProjectRootElement factory, ProjectElementContainer parent) => ProjectElementContainer.DeepClone(xml, factory, parent);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
51public abstract ProjectElementContainer Parent { get; }
Microsoft.Build.Engine.OM.UnitTests (83)
Construction\ConstructionEditing_Tests.cs (1)
2294ProjectElementContainer current = project;
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (15)
28var appendWhere = this.Get(where) as ProjectElementContainer; 187Assert.True(this.View is ProjectElementContainer); 188Assert.True(this.Real is ProjectElementContainer); 190return QueryChildrenWithValidation((t) => (t as ProjectElementContainer).AllChildren, matcher); 414private static void VerifyProjectElementContainerView(ProjectElementContainer viewXml, ProjectElementContainer realXml, ValidationContext context = null) 447if (realChild is ProjectElementContainer realChildContainer) 449Assert.True(viewChild is ProjectElementContainer); 451VerifyProjectElementContainerView((ProjectElementContainer)viewChild, realChildContainer, context); 455Assert.False(viewChild is ProjectElementContainer); 504if (viewXml is ProjectElementContainer viewContainer) 506Assert.True(realXml is ProjectElementContainer); 507VerifyProjectElementContainerView(viewContainer, (ProjectElementContainer)realXml, context); 511Assert.False(realXml is ProjectElementContainer);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\InheritanceImplementationHelpers.cs (5)
53public static ProjectElementContainer GetParent(this IProjectElementLinkHelper xml) 55return (ProjectElementContainer)xml.ElementProxy.Parent.Import(xml.Linker); 166public static ProjectElementContainer DeepClone(this IProjectElementContainerLinkHelper xml, ProjectRootElement factory, ProjectElementContainer parent) 172return (ProjectElementContainer)result.Import(xml.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectChooseElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (8)
14public ProjectElementContainer ContainerXml => (ProjectElementContainer)Source; 39var pec = (ProjectElementContainer)parent.Import(OwningCollection); 40var result = ProjectElementContainerLink.DeepClone(this.ContainerXml, pre, pec); 69public override ProjectElementContainer Parent => EImpl.GetParent(); 94public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (1)
91public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectExtensionsElementLink.cs (1)
55public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectImportElementLink.cs (1)
52public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectImportGroupElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemDefinitionElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemDefinitionGroupElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemElementLink.cs (3)
54public override ProjectElementContainer Parent => EImpl.GetParent(); 79public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemGroupElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
54public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOnErrorElementLink.cs (1)
42public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOtherwiseElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOutputElementLink.cs (1)
43public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyElementLink.cs (1)
54public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyGroupElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (3)
166public override ProjectElementContainer Parent => EImpl.GetParent(); 191public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectSdkElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTargetElementLink.cs (3)
54public override ProjectElementContainer Parent => EImpl.GetParent(); 79public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTaskElementLink.cs (3)
70public override ProjectElementContainer Parent => EImpl.GetParent(); 95public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskBodyElementLink.cs (1)
50public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskParameterElementLink.cs (1)
46public override ProjectElementContainer Parent => EImpl.GetParent();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectWhenElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockUsingTaskParameterGroupElementLink.cs (3)
43public override ProjectElementContainer Parent => EImpl.GetParent(); 68public override ProjectElementContainer DeepClone(ProjectRootElement factory, ProjectElementContainer parent) => CImpl.DeepClone(factory, parent);