BuildTask.SetParameterValue Method
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.
Sets the value of the specified task parameter.
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. |
- 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.
public:
void SetParameterValue(System::String ^ parameterName, System::String ^ parameterValue);
public void SetParameterValue(string parameterName, string parameterValue);
member this.SetParameterValue : string * string -> unit
Public Sub SetParameterValue (parameterName As String, parameterValue As String)
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 |
- 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.
public:
void SetParameterValue(System::String ^ parameterName, System::String ^ parameterValue, bool treatParameterValueAsLiteral);
public void SetParameterValue(string parameterName, string parameterValue, bool treatParameterValueAsLiteral);
member this.SetParameterValue : string * string * bool -> unit
Public Sub SetParameterValue (parameterName As String, parameterValue As String, treatParameterValueAsLiteral As Boolean)
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 |