Compartilhar via


ProjectElementContainer.AllChildren Property

Gets a recursive depth-first enumerator over all child elements.

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 ReadOnly Property AllChildren As IEnumerable(Of ProjectElement)
public IEnumerable<ProjectElement> AllChildren { get; }
public:
property IEnumerable<ProjectElement^>^ AllChildren {
    IEnumerable<ProjectElement^>^ get ();
}
member AllChildren : IEnumerable<ProjectElement> with get
function get AllChildren () : IEnumerable<ProjectElement>

Property Value

Type: IEnumerable<ProjectElement>
Returns a recursive depth-first enumerator over all child elements.

Remarks

Recursion is possible because project element containers may contain children that are themselves project element containers.

.NET Framework Security

See Also

Reference

ProjectElementContainer Class

Microsoft.Build.Construction Namespace