ProjectElement.ContainingProject Property

Definition

ProjectRootElement (possibly imported) that contains this Xml. Cannot be null.

public:
 property Microsoft::Build::Construction::ProjectRootElement ^ ContainingProject { Microsoft::Build::Construction::ProjectRootElement ^ get(); };
public Microsoft.Build.Construction.ProjectRootElement ContainingProject { get; }
[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Microsoft.Build.Construction.ProjectRootElement ContainingProject { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
member this.ContainingProject : Microsoft.Build.Construction.ProjectRootElement
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ContainingProject : Microsoft.Build.Construction.ProjectRootElement
Public ReadOnly Property ContainingProject As ProjectRootElement

Property Value

The project root container that contains this project.

Attributes

Remarks

Setter ideally would be "protected and internal" There are some tricks here in order to save the space of a field: there are a lot of these objects.

Applies to