Share via


ProjectElement.Parent Property

Null if this is a ProjectRootElement.

Null if this has not been attached to a parent yet.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Property Parent As ProjectElementContainer
public ProjectElementContainer Parent { get; internal set; }
public:
property ProjectElementContainer^ Parent {
    ProjectElementContainer^ get ();
    internal: void set (ProjectElementContainer^ value);
}
member Parent : ProjectElementContainer with get, internal set
function get Parent () : ProjectElementContainer 
internal function set Parent (value : ProjectElementContainer)

Property Value

Type: Microsoft.Build.Construction.ProjectElementContainer
Returns the project element container that contains this project.

Remarks

Parent should only be set by ProjectElementContainer.

.NET Framework Security

See Also

Reference

ProjectElement Class

Microsoft.Build.Construction Namespace