ProjectElementContainer.FirstChild Property

Definition

First child, if any, otherwise null. Cannot be set directly; use PrependChild().

C#
public Microsoft.Build.Construction.ProjectElement FirstChild { get; }
C#
public Microsoft.Build.Construction.ProjectElement FirstChild { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The first child element, or null if no child element exists.

Attributes

Remarks

Use PrependChild to initialize this property.

Applies to

Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17