BuildTask.SetParameterValue Method

Definition

Sets the value of the specified task parameter.

Overloads

SetParameterValue(String, String)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This sets an arbitrary attribute on the task element. These are attributes that the project author has placed on the task element that get passed in to the task.

SetParameterValue(String, String, Boolean)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This sets an arbitrary attribute on the task element. These are attributes that the project author has placed on the task element that get passed in to the task.

This optionally escapes the parameter value so it will be treated as a literal.

SetParameterValue(String, String)

Source:
BuildTask.cs

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This sets an arbitrary attribute on the task element. These are attributes that the project author has placed on the task element that get passed in to the task.

C#
public void SetParameterValue(string parameterName, string parameterValue);

Parameters

parameterName
String

The parameter name to set.

parameterValue
String

The value to assign to parameterName.

Remarks

Avertissement

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SetParameterValue(String, String, Boolean)

Source:
BuildTask.cs

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This sets an arbitrary attribute on the task element. These are attributes that the project author has placed on the task element that get passed in to the task.

This optionally escapes the parameter value so it will be treated as a literal.

C#
public void SetParameterValue(string parameterName, string parameterValue, bool treatParameterValueAsLiteral);

Parameters

parameterName
String
parameterValue
String
treatParameterValueAsLiteral
Boolean

Remarks

Avertissement

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1