TargetCollection.Exists(String) Method

Definition

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

Applies to