ToolsetCollection.Contains ToolsetCollection.Contains ToolsetCollection.Contains ToolsetCollection.Contains Method

Definition

Gets whether the collection contains the referenced Toolset.

Overloads

Contains(Toolset) Contains(Toolset) Contains(Toolset) Contains(Toolset)

Gets whether the collection contains a Toolset with the specified ToolsetCollection name.

Contains(String) Contains(String) Contains(String) Contains(String)

Gets whether the collection contains a Toolset with the specified tools version.

Contains(Toolset) Contains(Toolset) Contains(Toolset) Contains(Toolset)

Gets 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

Parameters

item
Toolset Toolset Toolset Toolset

Required. A string value representing the name of the Toolset.

Returns

true if the Toolset is contained in the collection; otherwise, false. The default is false.

Implements

Contains(String) Contains(String) Contains(String) Contains(String)

Gets 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

Parameters

toolsVersion
String String String String

Required. A string value representing the tools version associated with the Toolset.

Returns

true if the Toolset is contained in the collection; otherwise, false. The default is false.

Applies to