TargetCollection.Exists(String) Method
Definition
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.
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
Checks if a target with given name already exists
public:
bool Exists(System::String ^ targetName);
public bool Exists (string targetName);
member this.Exists : string -> bool
Public Function Exists (targetName As String) As Boolean
Parameters
- targetName
- String
name of the target we're looking for
Returns
true if the target already exists
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