Aracılığıyla paylaş


ProjectInstance.SetProperty(String, String) Method

Definition

Add a property with the specified name and value. Overwrites any property with the same name already in the collection.

public:
 Microsoft::Build::Execution::ProjectPropertyInstance ^ SetProperty(System::String ^ name, System::String ^ evaluatedValue);
public Microsoft.Build.Execution.ProjectPropertyInstance SetProperty (string name, string evaluatedValue);
member this.SetProperty : string * string -> Microsoft.Build.Execution.ProjectPropertyInstance
Public Function SetProperty (name As String, evaluatedValue As String) As ProjectPropertyInstance

Parameters

name
String

The name of the property to add.

evaluatedValue
String

The evaluated value of the property to add.

Returns

The new property.

Remarks

We don't take a ProjectPropertyInstance to make sure we don't have one that's already in use by another ProjectPropertyInstance.

Applies to