ProjectWhenElement Class

 

Represents a When Element (MSBuild) in an MSBuild project.

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)


[DebuggerDisplayAttribute("#Children={Count} Condition={Condition}")]
public class ProjectWhenElement : ProjectElementContainer

NameDescription
System_CAPS_pubpropertyAllChildren

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyAllParents

All parent elements of this element, going up to the ProjectRootElement.

None if this is a ProjectRootElement.

None 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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyChildren

Gets 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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyChildrenReversed

Gets all child elements, starting from the last child.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyChooseElements

Gets all child Choose Element (MSBuild).

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.

System_CAPS_pubpropertyCondition

Gets or sets the Condition value.

It will return empty string IFF a condition attribute is legal but it’s not present or has no value.

It will return null IFF a Condition attribute is illegal on that element.

Removes the attribute if the value to set is empty.

It is possible for derived classes to throw an InvalidOperationException if setting the condition is not applicable for those 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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyConditionLocation

Location of the "Condition" attribute on this element, if any.

If there is no such attribute, returns null.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyContainingProject

ProjectRootElement (possibly imported) that contains this Xml.

Cannot be null.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyCount

Gets the number of 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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyFirstChild

Gets the first child element.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyItemGroups

Gets all child item groups.

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.

System_CAPS_pubpropertyLabel

Gets or sets the Label value.

Returns empty string if it is not present.

Removes the attribute if the value to set is empty.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyLabelLocation

Location of the "Label" attribute on this element, if any.

If there is no such attribute, returns null;

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyLastChild

Gets the last child element.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubpropertyLocation

Location of the corresponding Xml element.

May not be correct if file is not saved, or file has been edited since it was last saved.

In the case of an unsaved edit, the location only contains the path to the file that the element originates from.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyNextSibling

Next sibling element.

May be null.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyParent

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyPreviousSibling

Previous sibling element.

May be null.

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.(Inherited from ProjectElement.)

System_CAPS_pubpropertyPropertyGroups

Gets all child property groups.

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.

NameDescription
System_CAPS_pubmethodAppendChild(ProjectElement)

Appends the child element as the last child of this project container.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodClone()

(Inherited from ProjectElement.)

System_CAPS_protmethodClone(ProjectRootElement)

(Inherited from ProjectElement.)

System_CAPS_pubmethodCopyFrom(ProjectElement)

(Inherited from ProjectElement.)

System_CAPS_protmethodCreateNewInstance(ProjectRootElement)
System_CAPS_protmethodDeepClone(ProjectRootElement, ProjectElementContainer)

(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodDeepCopyFrom(ProjectElementContainer)

(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInsertAfterChild(ProjectElement, ProjectElement)

Inserts the child element after the reference element.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodInsertBeforeChild(ProjectElement, ProjectElement)

Inserts the child element before the reference element.

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.(Inherited from ProjectElementContainer.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodPrependChild(ProjectElement)

Prepends the child element as the first child of this project container.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodRemoveAllChildren()

Removes all the children, if any, from this project container.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodRemoveChild(ProjectElement)

Removes a child element from this project container.

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.(Inherited from ProjectElementContainer.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: