ProjectRootElement.CreateWhenElement(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a when. Caller must add it to the location of choice in this project.
public:
Microsoft::Build::Construction::ProjectWhenElement ^ CreateWhenElement(System::String ^ condition);
public Microsoft.Build.Construction.ProjectWhenElement CreateWhenElement (string condition);
member this.CreateWhenElement : string -> Microsoft.Build.Construction.ProjectWhenElement
Public Function CreateWhenElement (condition As String) As ProjectWhenElement
Parameters
- condition
- String
The value of the Condition attribute.
Returns
The When element.
Remarks
Caller must add the When element to the location of choice in this project.