共用方式為


ProjectRootElement.CreateWhenElement(String) Method

Definition

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.

Applies to