Project.RemovePropertyGroupsWithMatchingCondition Method

Definition

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition."

Overloads

RemovePropertyGroupsWithMatchingCondition(String, Boolean)

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition."

RemovePropertyGroupsWithMatchingCondition(String)

Removes all property groups with the specified condition from the project, but does not modify imported projects.

Remarks

This will not remove any property groups from imported project files.

RemovePropertyGroupsWithMatchingCondition(String, Boolean)

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition."

public:
 void RemovePropertyGroupsWithMatchingCondition(System::String ^ matchCondition, bool includeImportedPropertyGroups);
public void RemovePropertyGroupsWithMatchingCondition (string matchCondition, bool includeImportedPropertyGroups);
member this.RemovePropertyGroupsWithMatchingCondition : string * bool -> unit
Public Sub RemovePropertyGroupsWithMatchingCondition (matchCondition As String, includeImportedPropertyGroups As Boolean)

Parameters

matchCondition
String

A string representing the condition of the PropertyGroups that you want removed.

includeImportedPropertyGroups
Boolean

A boolean value indicating whether to include imported property groups in the search.

Remarks

This will not remove any property groups from imported project files.

Applies to

RemovePropertyGroupsWithMatchingCondition(String)

Removes all property groups with the specified condition from the project, but does not modify imported projects.

public:
 void RemovePropertyGroupsWithMatchingCondition(System::String ^ matchCondition);
public void RemovePropertyGroupsWithMatchingCondition (string matchCondition);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void RemovePropertyGroupsWithMatchingCondition (string matchCondition);
member this.RemovePropertyGroupsWithMatchingCondition : string -> unit
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.RemovePropertyGroupsWithMatchingCondition : string -> unit
Public Sub RemovePropertyGroupsWithMatchingCondition (matchCondition As String)

Parameters

matchCondition
String

The condition to match when removing property groups.

Attributes

Applies to