ToolsetCollection.Contains 方法

定义

获取集合是否包含所引用的 ToolsetGets whether the collection contains the referenced Toolset.

重载

Contains(Toolset)

获取集合是否包含具有指定 Toolset 名称的 ToolsetCollectionGets whether the collection contains a Toolset with the specified ToolsetCollection name.

Contains(String)

获取集合是否包含具有指定工具版本的 ToolsetGets whether the collection contains a Toolset with the specified tools version.

Contains(Toolset)

获取集合是否包含具有指定 Toolset 名称的 ToolsetCollectionGets whether the collection contains a Toolset with the specified ToolsetCollection name.

public:
 virtual bool Contains(Microsoft::Build::BuildEngine::Toolset ^ item);
public bool Contains (Microsoft.Build.BuildEngine.Toolset item);
abstract member Contains : Microsoft.Build.BuildEngine.Toolset -> bool
override this.Contains : Microsoft.Build.BuildEngine.Toolset -> bool
Public Function Contains (item As Toolset) As Boolean

参数

item
Toolset

必需。Required. 一个字符串值,表示 Toolset 的名称。A string value representing the name of the Toolset.

返回

如果 Toolset 包含在集合中,则为 true;否则为 falsetrue if the Toolset is contained in the collection; otherwise, false. 默认值为 falseThe default is false.

实现

Contains(String)

获取集合是否包含具有指定工具版本的 ToolsetGets whether the collection contains a Toolset with the specified tools version.

public:
 bool Contains(System::String ^ toolsVersion);
public bool Contains (string toolsVersion);
member this.Contains : string -> bool
Public Function Contains (toolsVersion As String) As Boolean

参数

toolsVersion
String

必需。Required. 一个字符串值,表示与 Toolset 关联的工具版本。A string value representing the tools version associated with the Toolset.

返回

如果 Toolset 包含在集合中,则为 true;否则为 falsetrue if the Toolset is contained in the collection; otherwise, false. 默认值为 falseThe default is false.

适用于