次の方法で共有


ProjectPropertyGroupElement.SetProperty(String, String) Method

Definition

Convenience method that picks a location based on a heuristic: If there is an existing property with the same name and no condition, updates its value. Otherwise it adds a new property after the last property.

public:
 Microsoft::Build::Construction::ProjectPropertyElement ^ SetProperty(System::String ^ name, System::String ^ unevaluatedValue);
public Microsoft.Build.Construction.ProjectPropertyElement SetProperty (string name, string unevaluatedValue);
member this.SetProperty : string * string -> Microsoft.Build.Construction.ProjectPropertyElement
Public Function SetProperty (name As String, unevaluatedValue As String) As ProjectPropertyElement

Parameters

name
String

The name of the property to be updated.

unevaluatedValue
String

The new property value.

Returns

The updated property.

Applies to