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