Condividi tramite


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". This will not remove any property groups from imported project files.

RemovePropertyGroupsWithMatchingCondition(String)

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

Remarks

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

RemovePropertyGroupsWithMatchingCondition(String, Boolean)

Source:
Project.cs

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

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

Condition on the PropertyGroups

includeImportedPropertyGroups
Boolean

Remarks

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

Applies to

RemovePropertyGroupsWithMatchingCondition(String)

Source:
Project.cs

Removes all <PropertyGroup>'s from the main project file that have a specific "Condition". This will not remove any property groups from imported project files.

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

Condition on the PropertyGroups

Attributes

Applies to