Partilhar via


BuildProperty(String, String) Constructor

Definition

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

Constructor, which initializes the property from just the property name and value, creating it as a "normal" property. This ends up creating a new XML element for the property under a dummy XML document.

public:
 BuildProperty(System::String ^ propertyName, System::String ^ propertyValue);
public BuildProperty (string propertyName, string propertyValue);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildProperty (string propertyName, string propertyValue);
new Microsoft.Build.BuildEngine.BuildProperty : string * string -> Microsoft.Build.BuildEngine.BuildProperty
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.BuildProperty : string * string -> Microsoft.Build.BuildEngine.BuildProperty
Public Sub New (propertyName As String, propertyValue As String)

Parameters

propertyName
String
propertyValue
String
Attributes

Remarks

Warning

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