Share via


ProjectChooseElement.WhenElements Property

Gets all the When children.

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 WhenElements As ICollection(Of ProjectWhenElement)
public ICollection<ProjectWhenElement> WhenElements { get; }
public:
property ICollection<ProjectWhenElement^>^ WhenElements {
    ICollection<ProjectWhenElement^>^ get ();
}
member WhenElements : ICollection<ProjectWhenElement> with get
function get WhenElements () : ICollection<ProjectWhenElement>

Property Value

Type: ICollection<ProjectWhenElement>
Returns all the When children. There is always at least one When child.

.NET Framework Security

See Also

Reference

ProjectChooseElement Class

Microsoft.Build.Construction Namespace