TargetCollection.Exists(String) Method

Definition

Determines whether the specified Target exists in the TargetCollection.

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

The Name attribute of the Target element to search for.

Returns

true if the Target element exists; otherwise, false.

Applies to