Project.SetImportedProperty Method

Definition

Sets the value of a property in an imported project.

Overloads

SetImportedProperty(String, String, String, Project)

Sets the value of a property in the specified imported project.

SetImportedProperty(String, String, String, Project, PropertyPosition)

Sets the value of a property in the specified imported project.

SetImportedProperty(String, String, String, Project, PropertyPosition, Boolean)

Sets the value of a property in the specified imported project.

SetImportedProperty(String, String, String, Project)

Sets the value of a property in the specified imported project.

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

Parameters

propertyName
String

The name of the property to change.

propertyValue
String

The value to assign the property.

condition
String

The condition to use on the property. Corresponds to the Condition attribute of the Property element.

importProject
Project

The Project that contains the specified property.

Attributes

Applies to

SetImportedProperty(String, String, String, Project, PropertyPosition)

Sets the value of a property in the specified imported project.

public:
 void SetImportedProperty(System::String ^ propertyName, System::String ^ propertyValue, System::String ^ condition, Microsoft::Build::BuildEngine::Project ^ importedProject, Microsoft::Build::BuildEngine::PropertyPosition position);
public void SetImportedProperty (string propertyName, string propertyValue, string condition, Microsoft.Build.BuildEngine.Project importedProject, Microsoft.Build.BuildEngine.PropertyPosition position);
member this.SetImportedProperty : string * string * string * Microsoft.Build.BuildEngine.Project * Microsoft.Build.BuildEngine.PropertyPosition -> unit
Public Sub SetImportedProperty (propertyName As String, propertyValue As String, condition As String, importedProject As Project, position As PropertyPosition)

Parameters

propertyName
String

The name of the property to change.

propertyValue
String

The value to assign the property.

condition
String

The condition to use on the property. Corresponds to the Condition attribute of the Property element.

importedProject
Project

The Project that contains the specified property.

position
PropertyPosition

A PropertyPosition value indicating the location to insert the property.

Applies to

SetImportedProperty(String, String, String, Project, PropertyPosition, Boolean)

Sets the value of a property in the specified imported project.

public:
 void SetImportedProperty(System::String ^ propertyName, System::String ^ propertyValue, System::String ^ condition, Microsoft::Build::BuildEngine::Project ^ importedProject, Microsoft::Build::BuildEngine::PropertyPosition position, bool treatPropertyValueAsLiteral);
public void SetImportedProperty (string propertyName, string propertyValue, string condition, Microsoft.Build.BuildEngine.Project importedProject, Microsoft.Build.BuildEngine.PropertyPosition position, bool treatPropertyValueAsLiteral);
member this.SetImportedProperty : string * string * string * Microsoft.Build.BuildEngine.Project * Microsoft.Build.BuildEngine.PropertyPosition * bool -> unit
Public Sub SetImportedProperty (propertyName As String, propertyValue As String, condition As String, importedProject As Project, position As PropertyPosition, treatPropertyValueAsLiteral As Boolean)

Parameters

propertyName
String

The name of the property to change.

propertyValue
String

The value to assign the property.

condition
String

The condition to use on the property. Corresponds to the Condition attribute of the Property element.

importedProject
Project

The Project that contains the specified property.

position
PropertyPosition

A PropertyPosition value indicating the location to insert the property.

treatPropertyValueAsLiteral
Boolean

true to treat the propertyValue parameter as a literal value; otherwise, false.

Remarks

Sets the value of a property and optionally escapes it so that it will be treated as a literal value despite any special characters it may contain.

Applies to