TargetCollection.Exists(String) 方法

定义

确定指定的 Target 是否存在于 TargetCollection 中。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

参数

targetName
String

要搜索的Target 元素的 Name 特性。The Name attribute of the Target element to search for.

返回

Boolean

如果 Target 元素存在,则为 true;否则为 falsetrue if the Target element exists; otherwise, false.

适用于